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\ItemStackTyped public method.
getHelmet(): ?Bedriox\Api\Inventory\ItemStackTyped public method.
getChestplate(): ?Bedriox\Api\Inventory\ItemStackTyped public method.
getLeggings(): ?Bedriox\Api\Inventory\ItemStackTyped public method.
getBoots(): ?Bedriox\Api\Inventory\ItemStackTyped public method.
getContents(): arrayTyped public method.
setItem(Bedriox\Api\Inventory\EquipmentSlot $slot, ?Bedriox\Api\Inventory\ItemStack $stack): voidTyped public method.
setHelmet(?Bedriox\Api\Inventory\ItemStack $stack): voidTyped public method.
setChestplate(?Bedriox\Api\Inventory\ItemStack $stack): voidTyped public method.
setLeggings(?Bedriox\Api\Inventory\ItemStack $stack): voidTyped public method.
setBoots(?Bedriox\Api\Inventory\ItemStack $stack): voidTyped public method.
setContents(array $contents): voidTyped public method.
clear(Bedriox\Api\Inventory\EquipmentSlot $slot): voidTyped public method.
clearAll(): voidTyped public method.
isEmpty(): boolTyped public method.
