|
static | create (BlockPosition $blockPosition, int $blockRuntimeId, int $flags, int $dataLayerId) |
|
Definition at line 20 of file UpdateBlockPacket.php.
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
|
$name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ create()
static pocketmine\network\mcpe\protocol\UpdateBlockPacket::create |
( |
BlockPosition |
$blockPosition, |
|
|
int |
$blockRuntimeId, |
|
|
int |
$flags, |
|
|
int |
$dataLayerId |
|
) |
| |
|
static |
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer |
$in | ) |
|
|
protectedinherited |
◆ decodePayload()
pocketmine\network\mcpe\protocol\UpdateBlockPacket::decodePayload |
( |
PacketSerializer |
$in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer |
$out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\UpdateBlockPacket::encodePayload |
( |
PacketSerializer |
$out | ) |
|
|
protected |
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
Implements pocketmine\network\mcpe\protocol\Packet.
Reimplemented in pocketmine\network\mcpe\protocol\UpdateBlockSyncedPacket.
Definition at line 68 of file UpdateBlockPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $blockPosition
BlockPosition pocketmine\network\mcpe\protocol\UpdateBlockPacket::$blockPosition |
◆ $blockRuntimeId
int pocketmine\network\mcpe\protocol\UpdateBlockPacket::$blockRuntimeId |
◆ $dataLayerId
int pocketmine\network\mcpe\protocol\UpdateBlockPacket::$dataLayerId = self::DATA_LAYER_NORMAL |
◆ $flags
int pocketmine\network\mcpe\protocol\UpdateBlockPacket::$flags = self::FLAG_NETWORK |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ DATA_LAYER_LIQUID
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::DATA_LAYER_LIQUID = 1 |
◆ DATA_LAYER_NORMAL
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::DATA_LAYER_NORMAL = 0 |
◆ FLAG_NEIGHBORS
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::FLAG_NEIGHBORS = 0b0001 |
◆ FLAG_NETWORK
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::FLAG_NETWORK = 0b0010 |
◆ FLAG_NOGRAPHIC
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::FLAG_NOGRAPHIC = 0b0100 |
◆ FLAG_NONE
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::FLAG_NONE = 0b0000 |
◆ FLAG_PRIORITY
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::FLAG_PRIORITY = 0b1000 |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\UpdateBlockPacket::NETWORK_ID = ProtocolInfo::UPDATE_BLOCK_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: