Package net.minecraft.text
Class HoverEvent.ItemStackContent
java.lang.Object
net.minecraft.text.HoverEvent.ItemStackContent
- Enclosing class:
HoverEvent
- Mappings:
Namespace Name named net/minecraft/text/HoverEvent$ItemStackContent
intermediary net/minecraft/class_2568$class_5249
official yb$c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentChanges
static final com.mojang.serialization.Codec
<HoverEvent.ItemStackContent> private final int
private static final com.mojang.serialization.Codec
<HoverEvent.ItemStackContent> private final RegistryEntry
<Item> static final com.mojang.serialization.Codec
<HoverEvent.ItemStackContent> -
Constructor Summary
ConstructorDescriptionItemStackContent
(ItemStack stack) ItemStackContent
(RegistryEntry<Item> item, int count, ComponentChanges changes) -
Method Summary
Modifier and TypeMethodDescriptionasStack()
boolean
int
hashCode()
private static com.mojang.serialization.DataResult
<HoverEvent.ItemStackContent> legacySerializer
(Text text, @Nullable RegistryOps<?> ops)
-
Field Details
-
ITEM_STACK_CODEC
- Mappings:
Namespace Name Mixin selector named ITEM_STACK_CODEC
Lnet/minecraft/text/HoverEvent$ItemStackContent;ITEM_STACK_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_46608
Lnet/minecraft/class_2568$class_5249;field_46608:Lcom/mojang/serialization/Codec;
official a
Lyb$c;a:Lcom/mojang/serialization/Codec;
-
ENTRY_BASED_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_BASED_CODEC
Lnet/minecraft/text/HoverEvent$ItemStackContent;ENTRY_BASED_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49672
Lnet/minecraft/class_2568$class_5249;field_49672:Lcom/mojang/serialization/Codec;
official c
Lyb$c;c:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/text/HoverEvent$ItemStackContent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_46609
Lnet/minecraft/class_2568$class_5249;field_46609:Lcom/mojang/serialization/Codec;
official b
Lyb$c;b:Lcom/mojang/serialization/Codec;
-
item
- Mappings:
Namespace Name Mixin selector named item
Lnet/minecraft/text/HoverEvent$ItemStackContent;item:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_24355
Lnet/minecraft/class_2568$class_5249;field_24355:Lnet/minecraft/class_6880;
official d
Lyb$c;d:Ljq;
-
count
private final int count- Mappings:
Namespace Name Mixin selector named count
Lnet/minecraft/text/HoverEvent$ItemStackContent;count:I
intermediary field_24356
Lnet/minecraft/class_2568$class_5249;field_24356:I
official e
Lyb$c;e:I
-
changes
- Mappings:
Namespace Name Mixin selector named changes
Lnet/minecraft/text/HoverEvent$ItemStackContent;changes:Lnet/minecraft/component/ComponentChanges;
intermediary field_49673
Lnet/minecraft/class_2568$class_5249;field_49673:Lnet/minecraft/class_9326;
official f
Lyb$c;f:Lkr;
-
stack
- Mappings:
Namespace Name Mixin selector named stack
Lnet/minecraft/text/HoverEvent$ItemStackContent;stack:Lnet/minecraft/item/ItemStack;
intermediary field_24358
Lnet/minecraft/class_2568$class_5249;field_24358:Lnet/minecraft/class_1799;
official g
Lyb$c;g:Lcxo;
-
-
Constructor Details
-
ItemStackContent
ItemStackContent(RegistryEntry<Item> item, int count, ComponentChanges changes) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/registry/entry/RegistryEntry;ILnet/minecraft/component/ComponentChanges;)V
intermediary <init>
Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_6880;ILnet/minecraft/class_9326;)V
official <init>
Lyb$c;<init>(Ljq;ILkr;)V
-
ItemStackContent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/ItemStack;)V
intermediary <init>
Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1799;)V
official <init>
Lyb$c;<init>(Lcxo;)V
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
asStack
- Mappings:
Namespace Name Mixin selector named asStack
Lnet/minecraft/text/HoverEvent$ItemStackContent;asStack()Lnet/minecraft/item/ItemStack;
intermediary method_27683
Lnet/minecraft/class_2568$class_5249;method_27683()Lnet/minecraft/class_1799;
official a
Lyb$c;a()Lcxo;
-
legacySerializer
private static com.mojang.serialization.DataResult<HoverEvent.ItemStackContent> legacySerializer(Text text, @Nullable @Nullable RegistryOps<?> ops) - Mappings:
Namespace Name Mixin selector named legacySerializer
Lnet/minecraft/text/HoverEvent$ItemStackContent;legacySerializer(Lnet/minecraft/text/Text;Lnet/minecraft/registry/RegistryOps;)Lcom/mojang/serialization/DataResult;
intermediary method_54203
Lnet/minecraft/class_2568$class_5249;method_54203(Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
official a
Lyb$c;a(Lxv;Lalx;)Lcom/mojang/serialization/DataResult;
-