RebarInventoryTicker

An item should implement this interface to tick when a player has the item in their inventory

Inheritors

Properties

Link copied to clipboard
abstract val tickInterval: Long

Determines the rate at which the onTick method will be called. onTick will be called at tickInterval * RebarConfig.INVENTORY_TICKER_BASE_RATE

Functions

Link copied to clipboard
abstract fun onTick(player: Player)

Called when the item is detected in the player's inventory. will be called at tickInterval * [RebarConfig.inventoryTickerBaseRate