BedrioxDOCUMENTATION
API CLASS

OffHandInventory

Immutable off-hand snapshot with session-bound authoritative mutations.

Bedriox\Api\Inventory\OffHandInventory
classBedriox\Api\Inventory

Public methods

__construct(?Bedriox\Api\Inventory\ItemStack $item, Bedriox\Api\Inventory\PlayerInventoryActions $actions)

Typed public method.

getItem(): ?Bedriox\Api\Inventory\ItemStack

Typed public method.

setItem(?Bedriox\Api\Inventory\ItemStack $stack): void

Typed public method.

clear(): void

Typed public method.

isEmpty(): bool

Typed public method.

View exact source ↗