Package net.minecraft.component.type
Record Class TooltipDisplayComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.TooltipDisplayComponent
- Record Components:
hideTooltip--
public record TooltipDisplayComponent(boolean hideTooltip, SequencedSet<ComponentType<?>> hiddenComponents)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/TooltipDisplayComponentintermediary net/minecraft/class_10712official ddonamed hideTooltipintermediary comp_3600official dnamed hiddenComponentsintermediary comp_3601official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TooltipDisplayComponent> static final TooltipDisplayComponentprivate static final com.mojang.serialization.Codec<SequencedSet<ComponentType<?>>> private final SequencedSet<ComponentType<?>> The field for thehiddenComponentsrecord component.private final booleanThe field for thehideTooltiprecord component.static final PacketCodec<RegistryByteBuf, TooltipDisplayComponent> -
Constructor Summary
ConstructorsConstructorDescriptionTooltipDisplayComponent(boolean bool, SequencedSet<ComponentType<?>> sequencedSet) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehiddenComponentsrecord component.booleanReturns the value of thehideTooltiprecord component.booleanshouldDisplay(ComponentType<?> component) final StringtoString()Returns a string representation of this record class.with(ComponentType<?> component, boolean hidden)
-
Field Details
-
hideTooltip
private final boolean hideTooltipThe field for thehideTooltiprecord component. -
HIDDEN_COMPONENTS_CODEC
private static final com.mojang.serialization.Codec<SequencedSet<ComponentType<?>>> HIDDEN_COMPONENTS_CODEC- Mappings:
Namespace Name Mixin selector named HIDDEN_COMPONENTS_CODECLnet/minecraft/component/type/TooltipDisplayComponent;HIDDEN_COMPONENTS_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56319Lnet/minecraft/class_10712;field_56319:Lcom/mojang/serialization/Codec;official fLddo;f:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/TooltipDisplayComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56316Lnet/minecraft/class_10712;field_56316:Lcom/mojang/serialization/Codec;official aLddo;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/TooltipDisplayComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_56317Lnet/minecraft/class_10712;field_56317:Lnet/minecraft/class_9139;official bLddo;b:Lze;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/TooltipDisplayComponent;DEFAULT:Lnet/minecraft/component/type/TooltipDisplayComponent;intermediary field_56318Lnet/minecraft/class_10712;field_56318:Lnet/minecraft/class_10712;official cLddo;c:Lddo;
-
-
Constructor Details
-
TooltipDisplayComponent
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector named withLnet/minecraft/component/type/TooltipDisplayComponent;with(Lnet/minecraft/component/ComponentType;Z)Lnet/minecraft/component/type/TooltipDisplayComponent;intermediary method_67215Lnet/minecraft/class_10712;method_67215(Lnet/minecraft/class_9331;Z)Lnet/minecraft/class_10712;official aLddo;a(Lkk;Z)Lddo;
-
shouldDisplay
- Mappings:
Namespace Name Mixin selector named shouldDisplayLnet/minecraft/component/type/TooltipDisplayComponent;shouldDisplay(Lnet/minecraft/component/ComponentType;)Zintermediary method_67214Lnet/minecraft/class_10712;method_67214(Lnet/minecraft/class_9331;)Zofficial aLddo;a(Lkk;)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
hideTooltip
public boolean hideTooltip()Returns the value of thehideTooltiprecord component.- Returns:
- the value of the
hideTooltiprecord component
-