mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
s/windowid/windowId
This commit is contained in:
@ -31,14 +31,14 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class ContainerClosePacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::CONTAINER_CLOSE_PACKET;
|
||||
|
||||
public $windowid;
|
||||
public $windowId;
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->windowid = $this->getByte();
|
||||
$this->windowId = $this->getByte();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putByte($this->windowid);
|
||||
$this->putByte($this->windowId);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
@ -31,7 +31,7 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class ContainerOpenPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::CONTAINER_OPEN_PACKET;
|
||||
|
||||
public $windowid;
|
||||
public $windowId;
|
||||
public $type;
|
||||
public $x;
|
||||
public $y;
|
||||
@ -39,14 +39,14 @@ class ContainerOpenPacket extends DataPacket{
|
||||
public $entityUniqueId = -1;
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->windowid = $this->getByte();
|
||||
$this->windowId = $this->getByte();
|
||||
$this->type = $this->getByte();
|
||||
$this->getBlockPosition($this->x, $this->y, $this->z);
|
||||
$this->entityUniqueId = $this->getEntityUniqueId();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putByte($this->windowid);
|
||||
$this->putByte($this->windowId);
|
||||
$this->putByte($this->type);
|
||||
$this->putBlockPosition($this->x, $this->y, $this->z);
|
||||
$this->putEntityUniqueId($this->entityUniqueId);
|
||||
|
Reference in New Issue
Block a user