Phpcraft
|
Public Member Functions | |
__construct (?Item $item=null, int $count=1, ?NBT $nbt=null) | |
getDisplayName () | |
setSNBT (string $snbt) | |
setDisplayName (?ChatComponent $name) | |
__toString () | |
hasNBT () | |
Static Public Member Functions | |
static | toString (?Slot $slot) |
static | isEmpty (?Slot $slot) |
Public Attributes | |
const | HEAD = 5 |
const | CHEST = 6 |
const | LEGS = 7 |
const | FEET = 8 |
const | HOTBAR_1 = 36 |
const | HOTBAR_2 = 37 |
const | HOTBAR_3 = 38 |
const | HOTBAR_4 = 39 |
const | HOTBAR_5 = 40 |
const | HOTBAR_6 = 41 |
const | HOTBAR_7 = 42 |
const | HOTBAR_8 = 43 |
const | HOTBAR_9 = 44 |
const | OFF_HAND = 45 |
$item | |
$count | |
$nbt | |
Phpcraft\Slot::__toString | ( | ) |
Phpcraft\Slot::getDisplayName | ( | ) |
Returns the display name of the item in this slot or null if not set.
Phpcraft\Slot::hasNBT | ( | ) |
Phpcraft\Slot::setDisplayName | ( | ?ChatComponent | $name | ) |
Sets the display name of this slot.
ChatComponent | null | $name | The new display name or null to unset it. |
Phpcraft\Slot::setSNBT | ( | string | $snbt | ) |
|
static |
int Phpcraft\Slot::$count |
How many times the item is in this slot.
Item Phpcraft\Slot::$item |
The item in this slot.
const Phpcraft\Slot::CHEST = 6 |
const Phpcraft\Slot::FEET = 8 |
const Phpcraft\Slot::HEAD = 5 |
const Phpcraft\Slot::HOTBAR_1 = 36 |
const Phpcraft\Slot::HOTBAR_2 = 37 |
const Phpcraft\Slot::HOTBAR_3 = 38 |
const Phpcraft\Slot::HOTBAR_4 = 39 |
const Phpcraft\Slot::HOTBAR_5 = 40 |
const Phpcraft\Slot::HOTBAR_6 = 41 |
const Phpcraft\Slot::HOTBAR_7 = 42 |
const Phpcraft\Slot::HOTBAR_8 = 43 |
const Phpcraft\Slot::HOTBAR_9 = 44 |
const Phpcraft\Slot::LEGS = 7 |
const Phpcraft\Slot::OFF_HAND = 45 |