BedrioxDOCUMENTATION
API CLASS

ArmorInventory

Immutable armor snapshot with session-bound authoritative mutations.

Bedriox\Api\Inventory\ArmorInventory
classBedriox\Api\Inventory

Public methods

__construct(array $contents, Bedriox\Api\Inventory\PlayerInventoryActions $actions)

Typed public method.

getItem(Bedriox\Api\Inventory\EquipmentSlot $slot): ?Bedriox\Api\Inventory\ItemStack

Typed public method.

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

Typed public method.

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

Typed public method.

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

Typed public method.

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

Typed public method.

getContents(): array

Typed public method.

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

Typed public method.

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

Typed public method.

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

Typed public method.

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

Typed public method.

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

Typed public method.

setContents(array $contents): void

Typed public method.

clear(Bedriox\Api\Inventory\EquipmentSlot $slot): void

Typed public method.

clearAll(): void

Typed public method.

isEmpty(): bool

Typed public method.

View exact source ↗