Record Class SimpleMultipartModelSelector.Term

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.SimpleMultipartModelSelector.Term
Record Components:
value -
negated -
Enclosing class:
SimpleMultipartModelSelector

@Environment(CLIENT) public static record SimpleMultipartModelSelector.Term(String value, boolean negated) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/SimpleMultipartModelSelector$Term
intermediary net/minecraft/class_818$class_10807
official gto$a
named value
intermediary comp_3761
official a
named negated
intermediary comp_3762
official b
  • Field Details Link icon

    • value Link icon

      private final String value
      The field for the value record component.
    • negated Link icon

      private final boolean negated
      The field for the negated record component.
    • NEGATED_PREFIX Link icon

      private static final String NEGATED_PREFIX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NEGATED_PREFIX Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Term;NEGATED_PREFIX:Ljava/lang/String;
      intermediary field_56945 Lnet/minecraft/class_818$class_10807;field_56945:Ljava/lang/String;
      official c Lgto$a;c:Ljava/lang/String;
  • Constructor Details Link icon

    • Term Link icon

      public Term(String value, boolean negated)
      Creates an instance of a Term record class.
      Parameters:
      value - the value for the value record component
      negated - the value for the negated record component
  • Method Details Link icon

    • parse Link icon

      public static SimpleMultipartModelSelector.Term parse(String value)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Term;parse(Ljava/lang/String;)Lnet/minecraft/client/render/model/json/SimpleMultipartModelSelector$Term;
      intermediary method_67963 Lnet/minecraft/class_818$class_10807;method_67963(Ljava/lang/String;)Lnet/minecraft/class_818$class_10807;
      official a Lgto$a;a(Ljava/lang/String;)Lgto$a;
    • toString Link icon

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • value Link icon

      public String value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • negated Link icon

      public boolean negated()
      Returns the value of the negated record component.
      Returns:
      the value of the negated record component