BedrioxDOCUMENTATION
API INTERFACE

EntityEquipment

Authoritative equipment belonging to one living entity.

Bedriox\Api\Entity\EntityEquipment
interfaceBedriox\Api\Entity

Public methods

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

Typed public method.

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

Typed public method.

getDropChance(Bedriox\Api\Inventory\EquipmentSlot $slot): float

Typed public method.

setDropChance(Bedriox\Api\Inventory\EquipmentSlot $slot, float $chance): void

Typed public method.

getContents(): array

Typed public method.

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

Typed public method.

clearAll(): void

Typed public method.

View exact source ↗