This commit is contained in:
Dylan K. Taylor 2016-10-12 13:16:50 +01:00
parent 7cd7a7fbf6
commit ec328a8160
2 changed files with 7 additions and 7 deletions

View File

@ -43,13 +43,13 @@ class ResourcePacksInfoPacket extends DataPacket{
$this->putByte($this->mustAccept);
$this->putShort(count($this->behaviourPackEntries));
foreach($this->behaviourPackEntries as $entry){
$this->putString($entry->getName());
$this->putString($entry->getPackId());
$this->putString($entry->getVersion());
$this->putLong($entry->getUint64());
}
$this->putShort(count($this->resourcePackEntries));
foreach($this->resourcePackEntries as $entry){
$this->putString($entry->getName());
$this->putString($entry->getPackId());
$this->putString($entry->getVersion());
$this->putLong($entry->getUint64());
}

View File

@ -22,18 +22,18 @@
namespace pocketmine\resourcepacks;
class ResourcePackInfoEntry{
protected $name;
protected $packId; //UUID
protected $version;
protected $uint64; // unknown
public function __construct(string $name, string $version, $uint64){
$this->name = $name;
public function __construct(string $packId, string $version, $uint64){
$this->packId = $packId;
$this->version = $version;
$this->uint64 = $uint64;
}
public function getName() : string{
return $this->name;
public function getPackId() : string{
return $this->packId;
}
public function getVersion() : string{