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 SummaryFieldsModifier and TypeFieldDescriptionprivate final Pool<ModelVariant> The field for thevariantsrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
variantsThe field for thevariantsrecord component.
 
- 
- 
Constructor Details- 
WeightedVariant
 
- 
- 
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;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
variantsReturns the value of thevariantsrecord component.- Returns:
- the value of the variantsrecord component
 
 
-