Record Class SnbtOperation.Type

java.lang.Object
java.lang.Record
net.minecraft.nbt.SnbtOperation.Type
Record Components:
id -
argCount -
Enclosing class:
SnbtOperation

public static record SnbtOperation.Type(String id, int argCount) extends Record
Mappings:
Namespace Name
named net/minecraft/nbt/SnbtOperation$Type
intermediary net/minecraft/class_10916$class_10917
official uv$a
named id
intermediary comp_3835
official a
named argCount
intermediary comp_3836
official b
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the argCount record component.
    private final String
    The field for the id record component.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Type(String string, int int2)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    Returns the value of the argCount record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • id Link icon

      private final String id
      The field for the id record component.
    • argCount Link icon

      private final int argCount
      The field for the argCount record component.
  • Constructor Details Link icon

    • Type Link icon

      public Type(String string, int int2)
  • Method Details Link icon

    • 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.
    • id Link icon

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

      public int argCount()
      Returns the value of the argCount record component.
      Returns:
      the value of the argCount record component