register

public final static Boolean register(Identifier staffItem, StaffItemHandler handler, Supplier<Supplier<? extends IStaffItemUnbakedModel>> staffItemModelSupplierFactory)(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

staffItemModelSupplierFactory

The staff item's unbaked model supplier's supplier. The nesting is needed to prevent loading client classes on the server