mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added some ContainerSetDataPacket constants
This commit is contained in:
@ -31,18 +31,28 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class ContainerSetDataPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::CONTAINER_SET_DATA_PACKET;
|
||||
|
||||
public $windowid;
|
||||
const PROPERTY_FURNACE_TICK_COUNT = 0;
|
||||
const PROPERTY_FURNACE_LIT_TIME = 1;
|
||||
const PROPERTY_FURNACE_LIT_DURATION = 2;
|
||||
//TODO: check property 3
|
||||
const PROPERTY_FURNACE_FUEL_AUX = 4;
|
||||
|
||||
const PROPERTY_BREWING_STAND_BREW_TIME = 0;
|
||||
const PROPERTY_BREWING_STAND_FUEL_AMOUNT = 1;
|
||||
const PROPERTY_BREWING_STAND_FUEL_TOTAL = 2;
|
||||
|
||||
public $windowId;
|
||||
public $property;
|
||||
public $value;
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->windowid = $this->getByte();
|
||||
$this->windowId = $this->getByte();
|
||||
$this->property = $this->getVarInt();
|
||||
$this->value = $this->getVarInt();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putByte($this->windowid);
|
||||
$this->putByte($this->windowId);
|
||||
$this->putVarInt($this->property);
|
||||
$this->putVarInt($this->value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user