register

public final static Boolean register(Identifier staffItem, StaffItemHandler handler)(source)

Registers a StaffItemHandler for the given item ID.

Return

true, if the registration was successful, false, if the item was already registered

Parameters

staffItem

The item ID to register a handler for. This is the item, which can be inserted into the staff

handler

The staff item handler, which processes staff interactions, while the registered item is inserted into it