Record Class WeightedUnbakedModel
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.WeightedUnbakedModel
- Record Components:
variants-
- All Implemented Interfaces:
BakedModel.GroupableModel,ResolvableModel
@Environment(CLIENT)
public record WeightedUnbakedModel(List<ModelVariant> variants)
extends Record
implements BakedModel.GroupableModel
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/WeightedUnbakedModelintermediary net/minecraft/class_807official gsinamed variantsintermediary comp_3049official b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WeightedUnbakedModel> private final List<ModelVariant> The field for thevariantsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWeightedUnbakedModel(List<ModelVariant> variants) Creates an instance of aWeightedUnbakedModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(ModelVariantOperator operator) private static BakedModelbake(Baker baker, ModelVariant variant) final 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. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/model/json/WeightedUnbakedModel;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56932Lnet/minecraft/class_807;field_56932:Lcom/mojang/serialization/Codec;official aLgsi;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
WeightedUnbakedModel
Creates an instance of aWeightedUnbakedModelrecord class.- Parameters:
variants- the value for thevariantsrecord component
-
-
Method Details
-
getEqualityGroup
- Specified by:
getEqualityGroupin interfaceBakedModel.GroupableModel- Mappings:
Namespace Name Mixin selector named getEqualityGroupLnet/minecraft/client/render/model/BakedModel$GroupableModel;getEqualityGroup(Lnet/minecraft/block/BlockState;)Ljava/lang/Object;intermediary method_62332Lnet/minecraft/class_1087$class_9979;method_62332(Lnet/minecraft/class_2680;)Ljava/lang/Object;official aLgsd$a;a(Leat;)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 aLhmi;a(Lhmi$a;)V
-
bake
- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/render/model/json/WeightedUnbakedModel;bake(Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/client/render/model/json/ModelVariant;)Lnet/minecraft/client/render/model/BakedModel;intermediary method_67930Lnet/minecraft/class_807;method_67930(Lnet/minecraft/class_7775;Lnet/minecraft/class_813;)Lnet/minecraft/class_1087;official aLgsi;a(Lhlz;Lgsm;)Lgsd;
-
bake
- Specified by:
bakein interfaceBakedModel.GroupableModel- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/render/model/BakedModel$GroupableModel;bake(Lnet/minecraft/client/render/model/Baker;)Lnet/minecraft/client/render/model/BakedModel;intermediary method_65542Lnet/minecraft/class_1087$class_9979;method_65542(Lnet/minecraft/class_7775;)Lnet/minecraft/class_1087;official aLgsd$a;a(Lhlz;)Lgsd;
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/render/model/json/WeightedUnbakedModel;apply(Lnet/minecraft/client/render/model/json/ModelVariantOperator;)Lnet/minecraft/client/render/model/json/WeightedUnbakedModel;intermediary method_67929Lnet/minecraft/class_807;method_67929(Lnet/minecraft/class_10804;)Lnet/minecraft/class_807;official aLgsi;a(Lgsn;)Lgsi;
-
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
-