mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
>_>
This commit is contained in:
parent
7cd7a7fbf6
commit
ec328a8160
@ -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());
|
||||
}
|
||||
|
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user