Companion

Functions

Link copied to clipboard
operator fun contains(staffItem: Identifier): Boolean

Checks, if a staff item handler for the given item is registered.

Link copied to clipboard
operator fun get(staffItem: Identifier): StaffHandler?

Gets the registered staff item handler for the given item or null, if no staff item handler was registered.

Link copied to clipboard
fun register(staffItem: Identifier, handler: StaffHandler): Boolean

Registers a StaffHandler for the given item ID. Call this from your common mod initializer.