Record Class TooltipDisplayComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.TooltipDisplayComponent
Record Components:
hideTooltip -
hiddenComponents -

public record TooltipDisplayComponent(boolean hideTooltip, SequencedSet<ComponentType<?>> hiddenComponents) extends Record
Mappings:
Namespace Name
named net/minecraft/component/type/TooltipDisplayComponent
intermediary net/minecraft/class_10712
official ddo
named hideTooltip
intermediary comp_3600
official d
named hiddenComponents
intermediary comp_3601
official e
  • Field Details Link icon

    • hideTooltip Link icon

      private final boolean hideTooltip
      The field for the hideTooltip record component.
    • hiddenComponents Link icon

      private final SequencedSet<ComponentType<?>> hiddenComponents
      The field for the hiddenComponents record component.
    • HIDDEN_COMPONENTS_CODEC Link icon

      private static final com.mojang.serialization.Codec<SequencedSet<ComponentType<?>>> HIDDEN_COMPONENTS_CODEC
      Mappings:
      Namespace Name Mixin selector
      named HIDDEN_COMPONENTS_CODEC Lnet/minecraft/component/type/TooltipDisplayComponent;HIDDEN_COMPONENTS_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56319 Lnet/minecraft/class_10712;field_56319:Lcom/mojang/serialization/Codec;
      official f Lddo;f:Lcom/mojang/serialization/Codec;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<TooltipDisplayComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/TooltipDisplayComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56316 Lnet/minecraft/class_10712;field_56316:Lcom/mojang/serialization/Codec;
      official a Lddo;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,TooltipDisplayComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/TooltipDisplayComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_56317 Lnet/minecraft/class_10712;field_56317:Lnet/minecraft/class_9139;
      official b Lddo;b:Lze;
    • DEFAULT Link icon

      public static final TooltipDisplayComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/TooltipDisplayComponent;DEFAULT:Lnet/minecraft/component/type/TooltipDisplayComponent;
      intermediary field_56318 Lnet/minecraft/class_10712;field_56318:Lnet/minecraft/class_10712;
      official c Lddo;c:Lddo;
  • Constructor Details Link icon

  • Method Details Link icon

    • with Link icon

      public TooltipDisplayComponent with(ComponentType<?> component, boolean hidden)
      Mappings:
      Namespace Name Mixin selector
      named with Lnet/minecraft/component/type/TooltipDisplayComponent;with(Lnet/minecraft/component/ComponentType;Z)Lnet/minecraft/component/type/TooltipDisplayComponent;
      intermediary method_67215 Lnet/minecraft/class_10712;method_67215(Lnet/minecraft/class_9331;Z)Lnet/minecraft/class_10712;
      official a Lddo;a(Lkk;Z)Lddo;
    • shouldDisplay Link icon

      public boolean shouldDisplay(ComponentType<?> component)
      Mappings:
      Namespace Name Mixin selector
      named shouldDisplay Lnet/minecraft/component/type/TooltipDisplayComponent;shouldDisplay(Lnet/minecraft/component/ComponentType;)Z
      intermediary method_67214 Lnet/minecraft/class_10712;method_67214(Lnet/minecraft/class_9331;)Z
      official a Lddo;a(Lkk;)Z
    • toString Link icon

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

      public boolean hideTooltip()
      Returns the value of the hideTooltip record component.
      Returns:
      the value of the hideTooltip record component
    • hiddenComponents Link icon

      public SequencedSet<ComponentType<?>> hiddenComponents()
      Returns the value of the hiddenComponents record component.
      Returns:
      the value of the hiddenComponents record component