Record Class WeightedUnbakedModel
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.WeightedUnbakedModel
- Record Components:
variants
-
- All Implemented Interfaces:
GroupableModel
,ResolvableModel
@Environment(CLIENT)
public record WeightedUnbakedModel(List<ModelVariant> variants)
extends Record
implements GroupableModel
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/WeightedUnbakedModel
intermediary net/minecraft/class_807
official gnr
named variants
intermediary comp_3049
official a
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.render.model.ResolvableModel
ResolvableModel.Resolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<ModelVariant> The field for thevariants
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getEqualityGroup
(BlockState state) final int
hashCode()
Returns a hash code value for this object.void
resolve
(ResolvableModel.Resolver resolver) final String
toString()
Returns a string representation of this record class.variants()
Returns the value of thevariants
record component.
-
Field Details
-
variants
The field for thevariants
record component.
-
-
Constructor Details
-
Method Details
-
getEqualityGroup
- Specified by:
getEqualityGroup
in interfaceGroupableModel
- Mappings:
Namespace Name Mixin selector named getEqualityGroup
Lnet/minecraft/client/render/model/GroupableModel;getEqualityGroup(Lnet/minecraft/block/BlockState;)Ljava/lang/Object;
intermediary method_62332
Lnet/minecraft/class_9979;method_62332(Lnet/minecraft/class_2680;)Ljava/lang/Object;
official a
Lgnt;a(Ldwy;)Ljava/lang/Object;
-
resolve
- Specified by:
resolve
in interfaceResolvableModel
- Mappings:
Namespace Name Mixin selector named resolve
Lnet/minecraft/client/render/model/ResolvableModel;resolve(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)V
intermediary method_62326
Lnet/minecraft/class_10526;method_62326(Lnet/minecraft/class_10526$class_10103;)V
official a
Lhhl;a(Lhhl$a;)V
-
bake
- Specified by:
bake
in interfaceGroupableModel
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/GroupableModel;bake(Lnet/minecraft/client/render/model/Baker;)Lnet/minecraft/client/render/model/BakedModel;
intermediary method_65542
Lnet/minecraft/class_9979;method_65542(Lnet/minecraft/class_7775;)Lnet/minecraft/class_1087;
official a
Lgnt;a(Lhhc;)Lhgt;
-
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)
. -
variants
Returns the value of thevariants
record component.- Returns:
- the value of the
variants
record component
-