register Staff Item Handler
public abstract Boolean registerStaffItemHandler<TConfig extends IConfiguration<TProfile>, TProfile extends Any>(Identifier itemInStaff, StaffItemHandler handler, Codec<TConfig> configurationCodec)(source)
Registers a StaffItemHandler.
Return
true
, if the registration was successful, false
, if the item was already registered
Parameters
item In Staff
The item ID to register a handler for
handler
The handler, which processes staff interactions, while the registered item is in it
configuration Codec
The codec for the configuration in Configuration.itemConfigurations