|
| clean () |
|
| decode () |
|
| encode () |
|
| getName () |
|
| pid () |
|
| encode () |
|
| decode () |
|
| reset () |
|
| clean () |
|
| __debugInfo () |
|
| getEntityMetadata (bool $types=true) |
|
| putEntityMetadata (array $metadata) |
|
| getName () |
|
| __construct ($buffer="", $offset=0) |
|
| reset () |
|
| setBuffer ($buffer=null, $offset=0) |
|
| getOffset () |
|
| getBuffer () |
|
| get ($len) |
|
| put ($str) |
|
| getBool () |
|
| putBool ($v) |
|
| getLong () |
|
| putLong ($v) |
|
| getInt () |
|
| putInt ($v) |
|
| getLLong () |
|
| putLLong ($v) |
|
| getLInt () |
|
| putLInt ($v) |
|
| getSignedShort () |
|
| putShort ($v) |
|
| getShort () |
|
| putSignedShort ($v) |
|
| getFloat (int $accuracy=-1) |
|
| putFloat ($v) |
|
| getLShort ($signed=true) |
|
| putLShort ($v) |
|
| getLFloat (int $accuracy=-1) |
|
| putLFloat ($v) |
|
| getTriad () |
|
| putTriad ($v) |
|
| getLTriad () |
|
| putLTriad ($v) |
|
| getByte () |
|
| putByte ($v) |
|
| getUUID () |
|
| putUUID (UUID $uuid) |
|
| getSlot () |
|
| putSlot (Item $item) |
|
| getString () |
|
| putString ($v) |
|
| getUnsignedVarInt () |
|
| putUnsignedVarInt ($v) |
|
| getVarInt () |
|
| putVarInt ($v) |
|
| getEntityId () |
|
| putEntityId ($v) |
|
| getBlockCoords (&$x, &$y, &$z) |
|
| putBlockCoords ($x, $y, $z) |
|
| getVector3f (&$x, &$y, &$z) |
|
| putVector3f ($x, $y, $z) |
|
| feof () |
|
◆ clean()
- Returns
- $this
49 return parent::clean();
◆ decode()
59 for($s = 0; $s < $count and !$this->
feof(); ++$s){
60 $this->slots[$s] = $this->
getSlot();
62 if($this->windowid === self::SPECIAL_INVENTORY){
64 for($s = 0; $s < $count and !$this->
feof(); ++$s){
◆ encode()
78 foreach($this->slots as $slot){
81 if($this->windowid === self::SPECIAL_INVENTORY and count($this->hotbar) > 0){
83 foreach($this->hotbar as $slot){
◆ getName()
- Returns
- PacketName|string
95 return "ContainerSetContentPacket";
◆ $hotbar
◆ $slots
◆ $targetEid
◆ $windowid
◆ NETWORK_ID
◆ SPECIAL_ARMOR
const SPECIAL_ARMOR = 0x78 |
◆ SPECIAL_CREATIVE
const SPECIAL_CREATIVE = 0x79 |
◆ SPECIAL_FIXED_INVENTORY
const SPECIAL_FIXED_INVENTORY = 0x7b |
◆ SPECIAL_HOTBAR
const SPECIAL_HOTBAR = 0x7a |
◆ SPECIAL_INVENTORY
const SPECIAL_INVENTORY = 0 |
The documentation for this class was generated from the following file:
- src/pocketmine/network/mcpe/protocol/ContainerSetContentPacket.php