BedrioxDOCUMENTATION
API INTERFACE

ItemRegistrar

Public interface in Bedriox\Api\Inventory.

Bedriox\Api\Inventory\ItemRegistrar
interfaceBedriox\Api\Inventory

Public methods

register(Bedriox\Api\Inventory\ItemDefinition $definition, bool $replace = false): void

Typed public method.

registerBehavior(string $identifier, Bedriox\Api\Inventory\ItemBehaviorDefinition $definition, bool $replace = false): void

Registers gameplay behavior for an item already admitted by the active Bedrock data set.

View exact source ↗