|
| | decode () |
| |
| | encode () |
| |
| | pid () |
| |
| | encode () |
| |
| | decode () |
| |
| | reset () |
| |
| | clean () |
| |
| | __debugInfo () |
| |
| | getEntityMetadata (bool $types=true) |
| |
| | putEntityMetadata (array $metadata) |
| |
| | getName () |
| |
| | __construct ($buffer="", $offset=0) |
| |
| | reset () |
| |
| | setBuffer ($buffer=null, $offset=0) |
| |
| | getOffset () |
| |
| | getBuffer () |
| |
| | get ($len) |
| |
| | put ($str) |
| |
| | getBool () |
| |
| | putBool ($v) |
| |
| | getLong () |
| |
| | putLong ($v) |
| |
| | getInt () |
| |
| | putInt ($v) |
| |
| | getLLong () |
| |
| | putLLong ($v) |
| |
| | getLInt () |
| |
| | putLInt ($v) |
| |
| | getSignedShort () |
| |
| | putShort ($v) |
| |
| | getShort () |
| |
| | putSignedShort ($v) |
| |
| | getFloat (int $accuracy=-1) |
| |
| | putFloat ($v) |
| |
| | getLShort ($signed=true) |
| |
| | putLShort ($v) |
| |
| | getLFloat (int $accuracy=-1) |
| |
| | putLFloat ($v) |
| |
| | getTriad () |
| |
| | putTriad ($v) |
| |
| | getLTriad () |
| |
| | putLTriad ($v) |
| |
| | getByte () |
| |
| | putByte ($v) |
| |
| | getUUID () |
| |
| | putUUID (UUID $uuid) |
| |
| | getSlot () |
| |
| | putSlot (Item $item) |
| |
| | getString () |
| |
| | putString ($v) |
| |
| | getUnsignedVarInt () |
| |
| | putUnsignedVarInt ($v) |
| |
| | getVarInt () |
| |
| | putVarInt ($v) |
| |
| | getEntityId () |
| |
| | putEntityId ($v) |
| |
| | getBlockCoords (&$x, &$y, &$z) |
| |
| | putBlockCoords ($x, $y, $z) |
| |
| | getVector3f (&$x, &$y, &$z) |
| |
| | putVector3f ($x, $y, $z) |
| |
| | feof () |
| |
◆ decode()
59 $this->worldImmutable = (bool) ($this->flags & 1);
60 $this->noPvp = (bool) ($this->flags & (1 << 1));
61 $this->noPvm = (bool) ($this->flags & (1 << 2));
62 $this->noMvp = (bool) ($this->flags & (1 << 3));
64 $this->autoJump = (bool) ($this->flags & (1 << 5));
65 $this->allowFlight = (bool) ($this->flags & (1 << 6));
66 $this->noClip = (bool) ($this->flags & (1 << 7));
67 $this->worldBuilder = (bool) ($this->flags & (1 << 8));
68 $this->isFlying = (bool) ($this->flags & (1 << 9));
69 $this->muted = (bool) ($this->flags & (1 << 10));
◆ encode()
78 $this->flags |= ((int) $this->worldImmutable);
79 $this->flags |= ((int) $this->noPvp) << 1;
80 $this->flags |= ((int) $this->noPvm) << 2;
81 $this->flags |= ((int) $this->noMvp) << 3;
83 $this->flags |= ((int) $this->autoJump) << 5;
84 $this->flags |= ((int) $this->allowFlight) << 6;
85 $this->flags |= ((int) $this->noClip) << 7;
86 $this->flags |= ((int) $this->worldBuilder) << 8;
87 $this->flags |= ((int) $this->isFlying) << 9;
88 $this->flags |= ((int) $this->muted) << 10;
◆ $allowFlight
◆ $autoJump
◆ $flags
◆ $isFlying
◆ $muted
◆ $noClip
◆ $noMvp
◆ $noPvm
◆ $noPvp
◆ $userPermission
◆ $worldBuilder
◆ $worldImmutable
◆ NETWORK_ID
◆ PERMISSION_ADMIN
| const PERMISSION_ADMIN = 4 |
◆ PERMISSION_AUTOMATION
| const PERMISSION_AUTOMATION = 3 |
◆ PERMISSION_HOST
| const PERMISSION_HOST = 2 |
◆ PERMISSION_NORMAL
| const PERMISSION_NORMAL = 0 |
◆ PERMISSION_OPERATOR
| const PERMISSION_OPERATOR = 1 |
The documentation for this class was generated from the following file:
- src/pocketmine/network/protocol/AdventureSettingsPacket.php