Added some fields to new packets

gave up on EventPacket because it's a mess, and StructureBlockUpdate is a job all by itself
This commit is contained in:
Dylan K. Taylor
2017-07-12 19:30:26 +01:00
parent 4731bf0a16
commit a5c6c8b973
7 changed files with 74 additions and 14 deletions

View File

@ -30,12 +30,14 @@ use pocketmine\network\mcpe\NetworkSession;
class ShowStoreOfferPacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::SHOW_STORE_OFFER_PACKET;
public $offerId;
public function decodePayload(){
//TODO
$this->offerId = $this->getString();
}
public function encodePayload(){
//TODO
$this->putString($this->offerId);
}
public function handle(NetworkSession $session) : bool{