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/ModelOverride
intermediary net/minecraft/class_799
official gna
named modelId
intermediary comp_3193
official a
named conditions
intermediary comp_3194
official b
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<ModelOverride.Condition> The field for theconditions
record component.private final Identifier
The field for themodelId
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.modelId()
Returns the value of themodelId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
modelId
The field for themodelId
record component. -
conditions
The field for theconditions
record 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;)V
intermediary <init>
Lnet/minecraft/class_799;<init>(Lnet/minecraft/class_2960;Ljava/util/List;)V
official <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 themodelId
record component.- Returns:
- the value of the
modelId
record component
-
conditions
Returns the value of theconditions
record component.- Returns:
- the value of the
conditions
record component
-