Package net.minecraft

Record Class class_8259.class_8260

java.lang.Object
java.lang.Record
net.minecraft.class_8259.class_8260
Record Components:
name -
rgb -
All Implemented Interfaces:
StringIdentifiable
Enclosing class:
class_8259

public static record class_8259.class_8260(String name, int rgb) extends Record implements StringIdentifiable
Mappings:
Namespace Name
official apl$a
intermediary net/minecraft/class_8259$class_8260
named net/minecraft/class_8259$class_8260
official a
intermediary comp_1347
named name
official b
intermediary comp_1348
named rgb
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • rgb

      private final int rgb
      The field for the rgb record component.
  • Constructor Details

    • class_8260

      public class_8260(String string, int int2)
  • Method Details

    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Lapw;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
    • toString

      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

      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

      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • rgb

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