Record Class WeightedUnbakedModel
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.WeightedUnbakedModel
- Record Components:
variants
-
- All Implemented Interfaces:
GroupableModel
,UnbakedModel
@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 gnd
named variants
intermediary comp_3049
official a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.UnbakedModel
UnbakedModel.Resolver
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<ModelVariant> The field for thevariants
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbake
(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer) final 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
(UnbakedModel.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
-
WeightedUnbakedModel
-
-
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
Lgne;a(Ldxu;)Ljava/lang/Object;
-
resolve
- Specified by:
resolve
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector named resolve
Lnet/minecraft/client/render/model/UnbakedModel;resolve(Lnet/minecraft/client/render/model/UnbakedModel$Resolver;)V
intermediary method_62326
Lnet/minecraft/class_1100;method_62326(Lnet/minecraft/class_1100$class_10103;)V
official a
Lhef;a(Lhef$a;)V
-
bake
public BakedModel bake(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer) - Specified by:
bake
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/UnbakedModel;bake(Lnet/minecraft/client/render/model/Baker;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;)Lnet/minecraft/client/render/model/BakedModel;
intermediary method_4753
Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_7775;Ljava/util/function/Function;Lnet/minecraft/class_3665;)Lnet/minecraft/class_1087;
official a
Lhef;a(Lhdv;Ljava/util/function/Function;Lheb;)Lhdm;
-
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
-