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 Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • toComponent Link icon

      public MultipartModelComponent 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 Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • condition Link icon

      public Optional<MultipartModelCondition> condition()
      Returns the value of the condition record component.
      Returns:
      the value of the condition record component
    • variants Link icon

      public WeightedVariant variants()
      Returns the value of the variants record component.
      Returns:
      the value of the variants record component