Class BukkitItemStack

java.lang.Object
wtf.choco.veinminer.platform.world.BukkitItemStack
All Implemented Interfaces:
ItemStack

public final class BukkitItemStack extends Object implements ItemStack
A Bukkit implementation of ItemStack.
  • Constructor Details

    • BukkitItemStack

      public BukkitItemStack(ItemStack itemStack)
      Construct a new BukkitItemStack.
      Parameters:
      itemStack - the bukkit item stack to wrap
  • Method Details

    • getType

      @NotNull public @NotNull ItemType getType()
      Description copied from interface: ItemStack
      Get the ItemType of this stack.
      Specified by:
      getType in interface ItemStack
      Returns:
      the type
    • getVeinMinerNBTValue

      @Nullable public @Nullable String getVeinMinerNBTValue()
      Description copied from interface: ItemStack
      Get the value of the VeinMiner-defined NBT key for this stack. The returned value acts as a unique identifier for item stacks that require a specific tag.
      Specified by:
      getVeinMinerNBTValue in interface ItemStack
      Returns:
      the value, or null if not set