Package net.minecraft

Record Class class_9300

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

public record class_9300(boolean showInTooltip) extends Record implements class_9299
Mappings:
Namespace Name
official cuk
intermediary net/minecraft/class_9300
named net/minecraft/class_9300
official c
intermediary comp_2417
named showInTooltip
  • Field Details

    • showInTooltip

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

      public static final com.mojang.serialization.Codec<class_9300> field_49366
      Mappings:
      Namespace Name Mixin selector
      official a Lcuk;a:Lcom/mojang/serialization/Codec;
      intermediary field_49366 Lnet/minecraft/class_9300;field_49366:Lcom/mojang/serialization/Codec;
      named field_49366 Lnet/minecraft/class_9300;field_49366:Lcom/mojang/serialization/Codec;
    • field_49367

      public static final PacketCodec<ByteBuf,class_9300> field_49367
      Mappings:
      Namespace Name Mixin selector
      official b Lcuk;b:Lye;
      intermediary field_49367 Lnet/minecraft/class_9300;field_49367:Lnet/minecraft/class_9139;
      named field_49367 Lnet/minecraft/class_9300;field_49367:Lnet/minecraft/network/codec/PacketCodec;
    • field_49368

      private static final Text field_49368
      Mappings:
      Namespace Name Mixin selector
      official d Lcuk;d:Lwg;
      intermediary field_49368 Lnet/minecraft/class_9300;field_49368:Lnet/minecraft/class_2561;
      named field_49368 Lnet/minecraft/class_9300;field_49368:Lnet/minecraft/text/Text;
  • Constructor Details

    • class_9300

      public class_9300(boolean bool)
  • Method Details

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

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