Record Class ModelOverride
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelOverride
- Record Components:
modelId-conditions-
@Environment(CLIENT)
public record ModelOverride(Identifier modelId, List<ModelOverride.Condition> conditions)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelOverrideintermediary net/minecraft/class_799official gnanamed modelIdintermediary comp_3193official anamed conditionsintermediary comp_3194official b
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ModelOverride.Condition> The field for theconditionsrecord component.private final IdentifierThe field for themodelIdrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
modelId
The field for themodelIdrecord component. -
conditions
The field for theconditionsrecord component.
-
-
Constructor Details
-
ModelOverride
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelOverride;<init>(Lnet/minecraft/util/Identifier;Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_799;<init>(Lnet/minecraft/class_2960;Ljava/util/List;)Vofficial <init>Lgna;<init>(Lalz;Ljava/util/List;)V
-
-
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). -
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-