registerStaffItemHandler

abstract fun <TConfig : IConfiguration<TProfile>, TProfile : Any> registerStaffItemHandler(itemInStaff: Identifier, handler: StaffItemHandler, configurationCodec: Codec<TConfig>): Boolean(source)

Registers a StaffItemHandler.

Return

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

Parameters

itemInStaff

The item ID to register a handler for

handler

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

configurationCodec

The codec for the configuration in Configuration.itemConfigurations