Class HoverEvent.ItemHover

  • Enclosing class:
    HoverEvent

    public static class HoverEvent.ItemHover
    extends java.lang.Object
    • Field Detail

      • item

        private final Item item
      • count

        private final int count
      • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getItemStack

        public ItemStack getItemStack()
      • serialize

        private com.google.gson.JsonElement serialize()