Record Class DynamicFluidContainerModel.Textures
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.item.DynamicFluidContainerModel.Textures
- Enclosing class:
DynamicFluidContainerModel
public static record DynamicFluidContainerModel.Textures(Optional<net.minecraft.resources.ResourceLocation> particle, Optional<net.minecraft.resources.ResourceLocation> base, Optional<net.minecraft.resources.ResourceLocation> fluid, Optional<net.minecraft.resources.ResourceLocation> cover)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional
<net.minecraft.resources.ResourceLocation> The field for thebase
record component.static final com.mojang.serialization.Codec
<DynamicFluidContainerModel.Textures> private final Optional
<net.minecraft.resources.ResourceLocation> The field for thecover
record component.private final Optional
<net.minecraft.resources.ResourceLocation> The field for thefluid
record component.private final Optional
<net.minecraft.resources.ResourceLocation> The field for theparticle
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTextures
(Optional<net.minecraft.resources.ResourceLocation> particle, Optional<net.minecraft.resources.ResourceLocation> base, Optional<net.minecraft.resources.ResourceLocation> fluid, Optional<net.minecraft.resources.ResourceLocation> cover) Creates an instance of aTextures
record class. -
Method Summary
Modifier and TypeMethodDescriptionOptional
<net.minecraft.resources.ResourceLocation> base()
Returns the value of thebase
record component.Optional
<net.minecraft.resources.ResourceLocation> cover()
Returns the value of thecover
record component.final boolean
Indicates whether some other object is "equal to" this one.Optional
<net.minecraft.resources.ResourceLocation> fluid()
Returns the value of thefluid
record component.final int
hashCode()
Returns a hash code value for this object.Optional
<net.minecraft.resources.ResourceLocation> particle()
Returns the value of theparticle
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
particle
The field for theparticle
record component. -
base
The field for thebase
record component. -
fluid
The field for thefluid
record component. -
cover
The field for thecover
record component. -
CODEC
-
-
Constructor Details
-
Textures
public Textures(Optional<net.minecraft.resources.ResourceLocation> particle, Optional<net.minecraft.resources.ResourceLocation> base, Optional<net.minecraft.resources.ResourceLocation> fluid, Optional<net.minecraft.resources.ResourceLocation> cover) Creates an instance of aTextures
record class.- Parameters:
particle
- the value for theparticle
record componentbase
- the value for thebase
record componentfluid
- the value for thefluid
record componentcover
- the value for thecover
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
particle
Returns the value of theparticle
record component.- Returns:
- the value of the
particle
record component
-
base
Returns the value of thebase
record component.- Returns:
- the value of the
base
record component
-
fluid
Returns the value of thefluid
record component.- Returns:
- the value of the
fluid
record component
-
cover
Returns the value of thecover
record component.- Returns:
- the value of the
cover
record component
-