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/WeightedUnbakedModelintermediary net/minecraft/class_807official gnrnamed variantsintermediary comp_3049official 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 thevariantsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getEqualityGroup(BlockState state) final inthashCode()Returns a hash code value for this object.voidresolve(ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.variants()Returns the value of thevariantsrecord component.
-
Field Details
-
variants
The field for thevariantsrecord component.
-
-
Constructor Details
-
WeightedUnbakedModel
-
-
Method Details
-
getEqualityGroup
- Specified by:
getEqualityGroupin interfaceGroupableModel- Mappings:
Namespace Name Mixin selector named getEqualityGroupLnet/minecraft/client/render/model/GroupableModel;getEqualityGroup(Lnet/minecraft/block/BlockState;)Ljava/lang/Object;intermediary method_62332Lnet/minecraft/class_9979;method_62332(Lnet/minecraft/class_2680;)Ljava/lang/Object;official aLgnt;a(Ldwy;)Ljava/lang/Object;
-
resolve
- Specified by:
resolvein interfaceResolvableModel- Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/client/render/model/ResolvableModel;resolve(Lnet/minecraft/client/render/model/ResolvableModel$Resolver;)Vintermediary method_62326Lnet/minecraft/class_10526;method_62326(Lnet/minecraft/class_10526$class_10103;)Vofficial aLhhl;a(Lhhl$a;)V
-
bake
- Specified by:
bakein interfaceGroupableModel- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/render/model/GroupableModel;bake(Lnet/minecraft/client/render/model/Baker;)Lnet/minecraft/client/render/model/BakedModel;intermediary method_65542Lnet/minecraft/class_9979;method_65542(Lnet/minecraft/class_7775;)Lnet/minecraft/class_1087;official aLgnt;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 thevariantsrecord component.- Returns:
- the value of the
variantsrecord component
-