Package net.minecraft
Record Class class_11056
java.lang.Object
java.lang.Record
net.minecraft.class_11056
- Record Components:
effects-includeDescription-
- All Implemented Interfaces:
TooltipAppender
public record class_11056(List<class_11109> effects, boolean includeDescription)
extends Record
implements TooltipAppender
- Mappings:
Namespace Name named net/minecraft/class_11056intermediary net/minecraft/class_11056official dghnamed effectsintermediary comp_3946official dnamed includeDescriptionintermediary comp_3947official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_11109> The field for theeffectsrecord component.static final com.mojang.serialization.Codec<class_11056> static final PacketCodec<RegistryByteBuf, class_11056> static final class_11056private static final Textprivate static final Textprivate static final Textprivate static final Styleprivate final booleanThe field for theincludeDescriptionrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable PlayerEntity playerEntity, ItemStack itemStack) effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeDescriptionrecord component.private Textmethod_69592(@Nullable PlayerEntity playerEntity, class_11109 class_11109, boolean bool, boolean bool2) private static Textmethod_69593(class_11109 class_11109, Text text) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
effects
The field for theeffectsrecord component. -
includeDescription
private final boolean includeDescriptionThe field for theincludeDescriptionrecord component. -
field_58857
- Mappings:
Namespace Name Mixin selector named field_58857Lnet/minecraft/class_11056;field_58857:Lcom/mojang/serialization/Codec;intermediary field_58857Lnet/minecraft/class_11056;field_58857:Lcom/mojang/serialization/Codec;official aLdgh;a:Lcom/mojang/serialization/Codec;
-
field_58858
- Mappings:
Namespace Name Mixin selector named field_58858Lnet/minecraft/class_11056;field_58858:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58858Lnet/minecraft/class_11056;field_58858:Lnet/minecraft/class_9139;official bLdgh;b:Lzg;
-
field_58859
- Mappings:
Namespace Name Mixin selector named field_58859Lnet/minecraft/class_11056;field_58859:Lnet/minecraft/class_11056;intermediary field_58859Lnet/minecraft/class_11056;field_58859:Lnet/minecraft/class_11056;official cLdgh;c:Ldgh;
-
field_58860
- Mappings:
Namespace Name Mixin selector named field_58860Lnet/minecraft/class_11056;field_58860:Lnet/minecraft/text/Text;intermediary field_58860Lnet/minecraft/class_11056;field_58860:Lnet/minecraft/class_2561;official fLdgh;f:Lxi;
-
field_58861
- Mappings:
Namespace Name Mixin selector named field_58861Lnet/minecraft/class_11056;field_58861:Lnet/minecraft/text/Text;intermediary field_58861Lnet/minecraft/class_11056;field_58861:Lnet/minecraft/class_2561;official gLdgh;g:Lxi;
-
field_58862
- Mappings:
Namespace Name Mixin selector named field_58862Lnet/minecraft/class_11056;field_58862:Lnet/minecraft/text/Text;intermediary field_58862Lnet/minecraft/class_11056;field_58862:Lnet/minecraft/class_2561;official hLdgh;h:Lxi;
-
field_58863
- Mappings:
Namespace Name Mixin selector named field_58863Lnet/minecraft/class_11056;field_58863:Lnet/minecraft/text/Style;intermediary field_58863Lnet/minecraft/class_11056;field_58863:Lnet/minecraft/class_2583;official iLdgh;i:Lyf;
-
-
Constructor Details
-
class_11056
-
-
Method Details
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable @Nullable PlayerEntity playerEntity, ItemStack itemStack) - Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLdgd;a(Ldco$b;Ljava/util/function/Consumer;Ldek;Lcuf;Ldcs;)V
-
method_69592
private Text method_69592(@Nullable @Nullable PlayerEntity playerEntity, class_11109 class_11109, boolean bool, boolean bool2) - Mappings:
Namespace Name Mixin selector named method_69592Lnet/minecraft/class_11056;method_69592(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/class_11109;ZZ)Lnet/minecraft/text/Text;intermediary method_69592Lnet/minecraft/class_11056;method_69592(Lnet/minecraft/class_1657;Lnet/minecraft/class_11109;ZZ)Lnet/minecraft/class_2561;official aLdgh;a(Lcuf;Lfca;ZZ)Lxi;
-
method_69593
- Mappings:
Namespace Name Mixin selector named method_69593Lnet/minecraft/class_11056;method_69593(Lnet/minecraft/class_11109;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;intermediary method_69593Lnet/minecraft/class_11056;method_69593(Lnet/minecraft/class_11109;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;official aLdgh;a(Lfca;Lxi;)Lxi;
-
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 '=='. -
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
includeDescription
public boolean includeDescription()Returns the value of theincludeDescriptionrecord component.- Returns:
- the value of the
includeDescriptionrecord component
-