Package net.minecraft

Record Class class_9282

java.lang.Object
java.lang.Record
net.minecraft.class_9282
Record Components:
rgb -
showInTooltip -
All Implemented Interfaces:
class_9299

public record class_9282(int rgb, boolean showInTooltip) extends Record implements class_9299
Mappings:
Namespace Name
official ctw
intermediary net/minecraft/class_9282
named net/minecraft/class_9282
official d
intermediary comp_2384
named rgb
official e
intermediary comp_2385
named showInTooltip
  • Field Details

    • rgb

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

      private final boolean showInTooltip
      The field for the showInTooltip record component.
    • field_49312

      public static final com.mojang.serialization.Codec<class_9282> field_49312
      Mappings:
      Namespace Name Mixin selector
      official a Lctw;a:Lcom/mojang/serialization/Codec;
      intermediary field_49312 Lnet/minecraft/class_9282;field_49312:Lcom/mojang/serialization/Codec;
      named field_49312 Lnet/minecraft/class_9282;field_49312:Lcom/mojang/serialization/Codec;
    • field_49313

      public static final PacketCodec<ByteBuf,class_9282> field_49313
      Mappings:
      Namespace Name Mixin selector
      official b Lctw;b:Lye;
      intermediary field_49313 Lnet/minecraft/class_9282;field_49313:Lnet/minecraft/class_9139;
      named field_49313 Lnet/minecraft/class_9282;field_49313:Lnet/minecraft/network/codec/PacketCodec;
    • field_49314

      public static final int field_49314
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lctw;c:I
      intermediary field_49314 Lnet/minecraft/class_9282;field_49314:I
      named field_49314 Lnet/minecraft/class_9282;field_49314:I
  • Constructor Details

    • class_9282

      public class_9282(int int2, boolean bool)
  • Method Details

    • method_57470

      public static int method_57470(ItemStack itemStack, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lctw;a(Lcrj;I)I
      intermediary method_57470 Lnet/minecraft/class_9282;method_57470(Lnet/minecraft/class_1799;I)I
      named method_57470 Lnet/minecraft/class_9282;method_57470(Lnet/minecraft/item/ItemStack;I)I
    • method_57471

      public static ItemStack method_57471(ItemStack itemStack, List<DyeItem> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lctw;a(Lcrj;Ljava/util/List;)Lcrj;
      intermediary method_57471 Lnet/minecraft/class_9282;method_57471(Lnet/minecraft/class_1799;Ljava/util/List;)Lnet/minecraft/class_1799;
      named method_57471 Lnet/minecraft/class_9282;method_57471(Lnet/minecraft/item/ItemStack;Ljava/util/List;)Lnet/minecraft/item/ItemStack;
    • method_57409

      public void method_57409(Consumer<Text> consumer, TooltipContext tooltipContext)
      Specified by:
      method_57409 in interface class_9299
      Mappings:
      Namespace Name Mixin selector
      official a Lcuj;a(Ljava/util/function/Consumer;Lcsz;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)V
      named method_57409 Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
    • 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. All components in this record class 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.
    • rgb

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

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