Method Overriding
Overriding Methods
BaseSTBItem
β
BaseSTBBlock
β
BaseSTBMachine
β
AbstractProcessingMachine
β
AbstractIOMachineBaseSTBItem
Abstract Methods
public String getItemName()
The custom item's display name (as returned by item.getItemMeta().getDisplayName())
Optional Methods
public String getDisplaySuffix()
Any string returned here is appended to the item's display name. You can override this to encode some of the item's state (e.g. paint level in a Paint Brush) in the item's display name
Event Handler Methods
public void onInteractItem(PlayerInteractEvent event)
Called when a player interacts with your item while holding it.
BaseSTBBlock
Optional Methods
Event Handler Methods
public void onBlockDamage(BlockDamageEvent event)
Called when this block is damaged. This event may be cancelled to prevent damage.
Last updated