HopperItem

public abstract class HopperItem

Properties

Link copied to clipboard
public final static NamespacedKey HOPPER_ITEM_TYPE

Functions

Link copied to clipboard
public abstract ItemStack getDefaultItem()
Defines the custom itemstack to be used by default.
Link copied to clipboard
Link copied to clipboard
public boolean isHopperItem(ItemStack itemStack)
Checks if an item is a HopperItem of this type.
Link copied to clipboard
public abstract void onAirUse(Player player, ItemStack itemStack)
Executed when a player right clicks with this item on the air.
Link copied to clipboard
public abstract void onBlockUse(Player player, ItemStack itemStack, Block block, BlockFace blockFace)
Executed when a player right clicks with this item on a block.
Link copied to clipboard
public abstract boolean onDeviceDrop(Player player, boolean isShifting, Item dropped)
Executed when a player drops this custom item