Record Class EquipmentClientInfo.TrimOverride
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.EquipmentClientInfo.TrimOverride
- Enclosing class:
EquipmentClientInfo
public static record EquipmentClientInfo.TrimOverride(EquipmentClientInfo.TrimPredicate predicate, Optional<Identifier> textureId, Optional<Identifier> paletteId)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EquipmentClientInfo.TrimOverride> private final Optional<Identifier> The field for thepaletteIdrecord component.private final EquipmentClientInfo.TrimPredicateThe field for thepredicaterecord component.private final Optional<Identifier> The field for thetextureIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTrimOverride(EquipmentClientInfo.TrimPredicate predicate, Optional<Identifier> textureId, Optional<Identifier> paletteId) Creates an instance of aTrimOverriderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepaletteIdrecord component.Returns the value of thepredicaterecord component.Returns the value of thetextureIdrecord component.final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<EquipmentClientInfo.TrimOverride> validate(EquipmentClientInfo.TrimOverride override)
-
Field Details
-
predicate
The field for thepredicaterecord component. -
textureId
The field for thetextureIdrecord component. -
paletteId
The field for thepaletteIdrecord component. -
CODEC
-
-
Constructor Details
-
TrimOverride
public TrimOverride(EquipmentClientInfo.TrimPredicate predicate, Optional<Identifier> textureId, Optional<Identifier> paletteId) Creates an instance of aTrimOverriderecord class.- Parameters:
predicate- the value for thepredicaterecord componenttextureId- the value for thetextureIdrecord componentpaletteId- the value for thepaletteIdrecord component
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<EquipmentClientInfo.TrimOverride> validate(EquipmentClientInfo.TrimOverride override) -
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). -
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
textureId
Returns the value of thetextureIdrecord component.- Returns:
- the value of the
textureIdrecord component
-
paletteId
Returns the value of thepaletteIdrecord component.- Returns:
- the value of the
paletteIdrecord component
-