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<ResourceLocation> particle, Optional<ResourceLocation> base, Optional<ResourceLocation> fluid, Optional<ResourceLocation> cover)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<ResourceLocation> The field for thebaserecord component.static final com.mojang.serialization.Codec<DynamicFluidContainerModel.Textures> private final Optional<ResourceLocation> The field for thecoverrecord component.private final Optional<ResourceLocation> The field for thefluidrecord component.private final Optional<ResourceLocation> The field for theparticlerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextures(Optional<ResourceLocation> particle, Optional<ResourceLocation> base, Optional<ResourceLocation> fluid, Optional<ResourceLocation> cover) Creates an instance of aTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.cover()Returns the value of thecoverrecord component.final booleanIndicates whether some other object is "equal to" this one.fluid()Returns the value of thefluidrecord component.final inthashCode()Returns a hash code value for this object.particle()Returns the value of theparticlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
particle
The field for theparticlerecord component. -
base
The field for thebaserecord component. -
fluid
The field for thefluidrecord component. -
cover
The field for thecoverrecord component. -
CODEC
-
-
Constructor Details
-
Textures
public Textures(Optional<ResourceLocation> particle, Optional<ResourceLocation> base, Optional<ResourceLocation> fluid, Optional<ResourceLocation> cover) Creates an instance of aTexturesrecord class.- Parameters:
particle- the value for theparticlerecord componentbase- the value for thebaserecord componentfluid- the value for thefluidrecord componentcover- the value for thecoverrecord 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 theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
fluid
Returns the value of thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-
cover
Returns the value of thecoverrecord component.- Returns:
- the value of the
coverrecord component
-