Package net.minecraft.util.text.event
Class HoverEvent.ItemHover
- java.lang.Object
-
- net.minecraft.util.text.event.HoverEvent.ItemHover
-
- Enclosing class:
- HoverEvent
public static class HoverEvent.ItemHover extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ItemHover(Item p_i232567_1_, int p_i232567_2_, CompoundNBT p_i232567_3_)
ItemHover(ItemStack p_i232568_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static HoverEvent.ItemHover
create(com.google.gson.JsonElement p_240694_0_)
private static HoverEvent.ItemHover
create(ITextComponent p_240695_0_)
boolean
equals(java.lang.Object p_equals_1_)
ItemStack
getItemStack()
int
hashCode()
private com.google.gson.JsonElement
serialize()
-
-
-
Field Detail
-
item
private final Item item
-
count
private final int count
-
tag
@Nullable private final CompoundNBT tag
-
itemStack
@Nullable private ItemStack itemStack
-
-
Constructor Detail
-
ItemHover
ItemHover(Item p_i232567_1_, int p_i232567_2_, @Nullable CompoundNBT p_i232567_3_)
-
ItemHover
public ItemHover(ItemStack p_i232568_1_)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getItemStack
public ItemStack getItemStack()
-
create
private static HoverEvent.ItemHover create(com.google.gson.JsonElement p_240694_0_)
-
create
@Nullable private static HoverEvent.ItemHover create(ITextComponent p_240695_0_)
-
serialize
private com.google.gson.JsonElement serialize()
-
-