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 xe$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
Lxe$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
Lxe$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
Lxe$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
Lxe$c;d:Ljm;
-
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
Lxe$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
Lxe$c;f:Lkn;
-
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
Lxe$c;g:Lcuo;
-
-
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>
Lxe$c;<init>(Ljm;ILkn;)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>
Lxe$c;<init>(Lcuo;)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
Lxe$c;a()Lcuo;
-
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
Lxe$c;a(Lwy;Lako;)Lcom/mojang/serialization/DataResult;
-