Class GeyserItemStack

java.lang.Object
org.geysermc.geyser.inventory.GeyserItemStack

public class GeyserItemStack extends Object
  • Field Details

  • Method Details

    • from

      @Nonnull public static GeyserItemStack from(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)
    • getJavaId

      public int getJavaId()
    • getAmount

      public int getAmount()
    • getNbt

      public com.github.steveice10.opennbt.tag.builtin.CompoundTag getNbt()
    • getNetId

      public int getNetId()
    • add

      public void add(int add)
    • sub

      public void sub(int sub)
    • getItemStack

      public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack getItemStack()
    • getItemStack

      public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack getItemStack(int newAmount)
    • getItemData

      public com.nukkitx.protocol.bedrock.data.inventory.ItemData getItemData(GeyserSession session)
    • getMapping

      public ItemMapping getMapping(GeyserSession session)
    • isEmpty

      public boolean isEmpty()
    • copy

      public GeyserItemStack copy()
    • copy

      public GeyserItemStack copy(int newAmount)
    • setAmount

      public void setAmount(int amount)
    • setNbt

      public void setNbt(com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt)
    • setNetId

      public void setNetId(int netId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object