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$Part
intermediary net/minecraft/class_4922$class_10887
official fsp$a
named condition
intermediary comp_3811
official a
named variants
intermediary comp_3812
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional
<MultipartModelCondition> The field for thecondition
record component.private final WeightedVariant
The field for thevariants
record component. -
Constructor Summary
ConstructorsConstructorDescriptionPart
(Optional<MultipartModelCondition> optional, WeightedVariant weightedVariant) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.variants()
Returns the value of thevariants
record component.
-
Field Details
-
Constructor Details
-
Part
Part(Optional<MultipartModelCondition> optional, WeightedVariant weightedVariant)
-
-
Method Details
-
toComponent
- Mappings:
Namespace Name Mixin selector named toComponent
Lnet/minecraft/client/data/MultipartBlockModelDefinitionCreator$Part;toComponent()Lnet/minecraft/client/render/model/json/MultipartModelComponent;
intermediary method_68472
Lnet/minecraft/class_4922$class_10887;method_68472()Lnet/minecraft/class_819;
official a
Lfsp$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 thecondition
record component.- Returns:
- the value of the
condition
record component
-
variants
Returns the value of thevariants
record component.- Returns:
- the value of the
variants
record component
-