Package net.minecraft.client.data
Record Class MultipartBlockModelDefinitionCreator.Part
java.lang.Object
java.lang.Record
net.minecraft.client.data.MultipartBlockModelDefinitionCreator.Part
- Record Components:
condition-variants-
- Enclosing class:
MultipartBlockModelDefinitionCreator
@Environment(CLIENT)
private static record MultipartBlockModelDefinitionCreator.Part(Optional<MultipartModelCondition> condition, WeightedVariant variants)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/data/MultipartBlockModelDefinitionCreator$Partintermediary net/minecraft/class_4922$class_10887official fsp$anamed conditionintermediary comp_3811official anamed variantsintermediary comp_3812official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<MultipartModelCondition> The field for theconditionrecord component.private final WeightedVariantThe field for thevariantsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPart(Optional<MultipartModelCondition> optional, WeightedVariant weightedVariant) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.variants()Returns the value of thevariantsrecord component.
-
Field Details
-
Constructor Details
-
Part
Part(Optional<MultipartModelCondition> optional, WeightedVariant weightedVariant)
-
-
Method Details
-
toComponent
- Mappings:
Namespace Name Mixin selector named toComponentLnet/minecraft/client/data/MultipartBlockModelDefinitionCreator$Part;toComponent()Lnet/minecraft/client/render/model/json/MultipartModelComponent;intermediary method_68472Lnet/minecraft/class_4922$class_10887;method_68472()Lnet/minecraft/class_819;official aLfsp$a;a()Lgtq;
-
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). -
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
variants
Returns the value of thevariantsrecord component.- Returns:
- the value of the
variantsrecord component
-