Record Class DynamicFluidContainerModel.Textures
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.item.DynamicFluidContainerModel.Textures
- Enclosing class:
DynamicFluidContainerModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebaserecord component.static final com.mojang.serialization.Codec<DynamicFluidContainerModel.Textures> The field for thecoverrecord component.The field for thefluidrecord component.The field for theparticlerecord component. -
Constructor Summary
Constructors -
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
-
base
-
fluid
-
cover
-
CODEC
-
-
Constructor Details
-
Textures
public Textures(Optional<Material> particle, Optional<Material> base, Optional<Material> fluid, Optional<Material> 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
-
hashCode
-
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
-
base
-
fluid
-
cover
-