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/WeightedVariantintermediary net/minecraft/class_807official gbznamed variantsintermediary comp_3049official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Pool<ModelVariant> The field for thevariantsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWeightedVariant(Pool<ModelVariant> variants) Creates an instance of aWeightedVariantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(ModelVariantOperator operator) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toModel()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
-
WeightedVariant
Creates an instance of aWeightedVariantrecord class.- Parameters:
variants- the value for thevariantsrecord component
-
-
Method Details
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/render/model/json/WeightedVariant;apply(Lnet/minecraft/client/render/model/json/ModelVariantOperator;)Lnet/minecraft/client/render/model/json/WeightedVariant;intermediary method_67929Lnet/minecraft/class_807;method_67929(Lnet/minecraft/class_10804;)Lnet/minecraft/class_807;official aLgbz;a(Lhib;)Lgbz;
-
toModel
- Mappings:
Namespace Name Mixin selector named toModelLnet/minecraft/client/render/model/json/WeightedVariant;toModel()Lnet/minecraft/client/render/model/BlockStateModel$Unbaked;intermediary method_68471Lnet/minecraft/class_807;method_68471()Lnet/minecraft/class_1087$class_10892;official aLgbz;a()Lhhr$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 thevariantsrecord component.- Returns:
- the value of the
variantsrecord component
-