mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
>_>
This commit is contained in:
parent
7cd7a7fbf6
commit
ec328a8160
@ -43,13 +43,13 @@ class ResourcePacksInfoPacket extends DataPacket{
|
|||||||
$this->putByte($this->mustAccept);
|
$this->putByte($this->mustAccept);
|
||||||
$this->putShort(count($this->behaviourPackEntries));
|
$this->putShort(count($this->behaviourPackEntries));
|
||||||
foreach($this->behaviourPackEntries as $entry){
|
foreach($this->behaviourPackEntries as $entry){
|
||||||
$this->putString($entry->getName());
|
$this->putString($entry->getPackId());
|
||||||
$this->putString($entry->getVersion());
|
$this->putString($entry->getVersion());
|
||||||
$this->putLong($entry->getUint64());
|
$this->putLong($entry->getUint64());
|
||||||
}
|
}
|
||||||
$this->putShort(count($this->resourcePackEntries));
|
$this->putShort(count($this->resourcePackEntries));
|
||||||
foreach($this->resourcePackEntries as $entry){
|
foreach($this->resourcePackEntries as $entry){
|
||||||
$this->putString($entry->getName());
|
$this->putString($entry->getPackId());
|
||||||
$this->putString($entry->getVersion());
|
$this->putString($entry->getVersion());
|
||||||
$this->putLong($entry->getUint64());
|
$this->putLong($entry->getUint64());
|
||||||
}
|
}
|
||||||
|
@ -22,18 +22,18 @@
|
|||||||
namespace pocketmine\resourcepacks;
|
namespace pocketmine\resourcepacks;
|
||||||
|
|
||||||
class ResourcePackInfoEntry{
|
class ResourcePackInfoEntry{
|
||||||
protected $name;
|
protected $packId; //UUID
|
||||||
protected $version;
|
protected $version;
|
||||||
protected $uint64; // unknown
|
protected $uint64; // unknown
|
||||||
|
|
||||||
public function __construct(string $name, string $version, $uint64){
|
public function __construct(string $packId, string $version, $uint64){
|
||||||
$this->name = $name;
|
$this->packId = $packId;
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
$this->uint64 = $uint64;
|
$this->uint64 = $uint64;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName() : string{
|
public function getPackId() : string{
|
||||||
return $this->name;
|
return $this->packId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getVersion() : string{
|
public function getVersion() : string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user