Record Class ModelVariant
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariant
- Record Components:
location-modelState-weight-
@Environment(CLIENT)
public record ModelVariant(Identifier location, ModelVariant.class_10803 modelState, int weight)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelVariantintermediary net/minecraft/class_813official gshnamed locationintermediary comp_3379official bnamed modelStateintermediary comp_3754official cnamed weightintermediary comp_3382official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ModelVariant> private final IdentifierThe field for thelocationrecord component.private final ModelVariant.class_10803The field for themodelStaterecord component.private final intThe field for theweightrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelVariant(Identifier identifier) ModelVariant(Identifier location, ModelVariant.class_10803 class_10803, int int2) -
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.location()Returns the value of thelocationrecord component.method_67935(int int2) method_67936(Identifier identifier) method_67938(ModelVariant.class_10803 class_10803) method_67939(class_10804 class_10804) method_67940(class_10821 class_10821) method_67941(boolean bool) method_67942(class_10821 class_10821) Returns the value of themodelStaterecord component.final StringtoString()Returns a string representation of this record class.intweight()Returns the value of theweightrecord component.
-
Field Details
-
location
The field for thelocationrecord component. -
modelState
The field for themodelStaterecord component. -
weight
private final int weightThe field for theweightrecord component. -
field_56933
- Mappings:
Namespace Name Mixin selector named field_56933Lnet/minecraft/client/render/model/json/ModelVariant;field_56933:Lcom/mojang/serialization/Codec;intermediary field_56933Lnet/minecraft/class_813;field_56933:Lcom/mojang/serialization/Codec;official aLgsh;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ModelVariant
-
ModelVariant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/model/json/ModelVariant;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/render/model/json/ModelVariant$class_10803;I)Vintermediary <init>Lnet/minecraft/class_813;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_813$class_10803;I)Vofficial <init>Lgsh;<init>(Lalg;Lgsh$a;I)V
-
-
Method Details
-
method_67940
- Mappings:
Namespace Name Mixin selector named method_67940Lnet/minecraft/client/render/model/json/ModelVariant;method_67940(Lnet/minecraft/class_10821;)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67940Lnet/minecraft/class_813;method_67940(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813;official aLgsh;a(Li;)Lgsh;
-
method_67942
- Mappings:
Namespace Name Mixin selector named method_67942Lnet/minecraft/client/render/model/json/ModelVariant;method_67942(Lnet/minecraft/class_10821;)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67942Lnet/minecraft/class_813;method_67942(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813;official bLgsh;b(Li;)Lgsh;
-
method_67941
- Mappings:
Namespace Name Mixin selector named method_67941Lnet/minecraft/client/render/model/json/ModelVariant;method_67941(Z)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67941Lnet/minecraft/class_813;method_67941(Z)Lnet/minecraft/class_813;official aLgsh;a(Z)Lgsh;
-
method_67936
- Mappings:
Namespace Name Mixin selector named method_67936Lnet/minecraft/client/render/model/json/ModelVariant;method_67936(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67936Lnet/minecraft/class_813;method_67936(Lnet/minecraft/class_2960;)Lnet/minecraft/class_813;official aLgsh;a(Lalg;)Lgsh;
-
method_67938
- Mappings:
Namespace Name Mixin selector named method_67938Lnet/minecraft/client/render/model/json/ModelVariant;method_67938(Lnet/minecraft/client/render/model/json/ModelVariant$class_10803;)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67938Lnet/minecraft/class_813;method_67938(Lnet/minecraft/class_813$class_10803;)Lnet/minecraft/class_813;official aLgsh;a(Lgsh$a;)Lgsh;
-
method_67935
- Mappings:
Namespace Name Mixin selector named method_67935Lnet/minecraft/client/render/model/json/ModelVariant;method_67935(I)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67935Lnet/minecraft/class_813;method_67935(I)Lnet/minecraft/class_813;official aLgsh;a(I)Lgsh;
-
method_67939
- Mappings:
Namespace Name Mixin selector named method_67939Lnet/minecraft/client/render/model/json/ModelVariant;method_67939(Lnet/minecraft/class_10804;)Lnet/minecraft/client/render/model/json/ModelVariant;intermediary method_67939Lnet/minecraft/class_813;method_67939(Lnet/minecraft/class_10804;)Lnet/minecraft/class_813;official aLgsh;a(Lgsi;)Lgsh;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
modelState
Returns the value of themodelStaterecord component.- Returns:
- the value of the
modelStaterecord component
-
weight
public int weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-