register

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

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

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