mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
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:
@ -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{
|
||||
|
Reference in New Issue
Block a user