java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack

public class ItemStack extends Object
  • Constructor Details

    • ItemStack

      public ItemStack(int id)
    • ItemStack

      public ItemStack(int id, int amount)
    • ItemStack

      public ItemStack(int id, int amount, @Nullable DataComponents dataComponents)
  • Method Details

    • getId

      public int getId()
    • getAmount

      public int getAmount()
    • getDataComponents

      public @Nullable DataComponents getDataComponents()
    • equals

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

      protected boolean canEqual(@Nullable Object other)
    • hashCode

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

      public @NonNull String toString()
      Overrides:
      toString in class Object