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/TooltipDisplayComponent
intermediary net/minecraft/class_10712
official ddo
named hideTooltip
intermediary comp_3600
official d
named hiddenComponents
intermediary comp_3601
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<TooltipDisplayComponent> static final TooltipDisplayComponent
private static final com.mojang.serialization.Codec
<SequencedSet<ComponentType<?>>> private final SequencedSet
<ComponentType<?>> The field for thehiddenComponents
record component.private final boolean
The field for thehideTooltip
record component.static final PacketCodec
<RegistryByteBuf, TooltipDisplayComponent> -
Constructor Summary
ConstructorsConstructorDescriptionTooltipDisplayComponent
(boolean bool, SequencedSet<ComponentType<?>> sequencedSet) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehiddenComponents
record component.boolean
Returns the value of thehideTooltip
record component.boolean
shouldDisplay
(ComponentType<?> component) final String
toString()
Returns a string representation of this record class.with
(ComponentType<?> component, boolean hidden)
-
Field Details
-
hideTooltip
private final boolean hideTooltipThe field for thehideTooltip
record component. -
HIDDEN_COMPONENTS_CODEC
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
- 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
- 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
- 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
-
Method Details
-
with
- 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
- 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
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 thehideTooltip
record component.- Returns:
- the value of the
hideTooltip
record component
-