Record Class WeightedVariant
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.WeightedVariant
- Record Components:
variants
-
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/WeightedVariant
intermediary net/minecraft/class_807
official fsm
named variants
intermediary comp_3049
official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Pool
<ModelVariant> The field for thevariants
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ModelVariantOperator operator) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.toModel()
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
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/client/render/model/json/WeightedVariant;apply(Lnet/minecraft/client/render/model/json/ModelVariantOperator;)Lnet/minecraft/client/render/model/json/WeightedVariant;
intermediary method_67929
Lnet/minecraft/class_807;method_67929(Lnet/minecraft/class_10804;)Lnet/minecraft/class_807;
official a
Lfsm;a(Lgtk;)Lfsm;
-
toModel
- Mappings:
Namespace Name Mixin selector named toModel
Lnet/minecraft/client/render/model/json/WeightedVariant;toModel()Lnet/minecraft/client/render/model/BlockStateModel$Unbaked;
intermediary method_68471
Lnet/minecraft/class_807;method_68471()Lnet/minecraft/class_1087$class_10892;
official a
Lfsm;a()Lgta$b;
-
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
-