BedrioxDOCUMENTATION
API CLASS

PlayerInventoryActions

Public class in Bedriox\Api\Inventory.

Bedriox\Api\Inventory\PlayerInventoryActions
classBedriox\Api\Inventory

Public methods

__construct(Closure $setMainItem, Closure $setMainContents, Closure $addMainItem, Closure $removeMainItem, Closure $setSelectedHotbarSlot, Closure $setArmorItem, Closure $setArmorContents, Closure $setOffHandItem)

Typed public method.

static unavailable(): self

Typed public method.

setMainItem(int $slot, ?Bedriox\Api\Inventory\ItemStack $stack): void

Typed public method.

setMainContents(array $contents): void

Typed public method.

addMainItem(Bedriox\Api\Inventory\ItemStack $stack): void

Typed public method.

removeMainItem(Bedriox\Api\Inventory\ItemStack $stack): void

Typed public method.

setSelectedHotbarSlot(int $slot): void

Typed public method.

setArmorItem(Bedriox\Api\Inventory\EquipmentSlot $slot, ?Bedriox\Api\Inventory\ItemStack $stack): void

Typed public method.

setArmorContents(array $contents): void

Typed public method.

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

Typed public method.

View exact source ↗