◆ __construct()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::__construct |
( |
string | $buffer = "", |
|
|
int | $offset = 0 ) |
|
protected |
◆ decoder()
static pocketmine\network\mcpe\protocol\serializer\PacketSerializer::decoder |
( |
string | $buffer, |
|
|
int | $offset ) |
|
static |
◆ encoder()
static pocketmine\network\mcpe\protocol\serializer\PacketSerializer::encoder |
( |
| ) |
|
|
static |
◆ feof()
pocketmine\utils\BinaryStream::feof |
( |
| ) |
|
|
inherited |
Returns whether the offset has reached the end of the buffer.
Definition at line 372 of file BinaryStream.php.
◆ get()
pocketmine\utils\BinaryStream::get |
( |
int | $len | ) |
|
|
inherited |
◆ getActorRuntimeId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getActorRuntimeId |
( |
| ) |
|
|
final |
◆ getActorUniqueId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getActorUniqueId |
( |
| ) |
|
|
final |
◆ getBlockPosition()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getBlockPosition |
( |
| ) |
|
◆ getBool()
pocketmine\utils\BinaryStream::getBool |
( |
| ) |
|
|
inherited |
◆ getBuffer()
pocketmine\utils\BinaryStream::getBuffer |
( |
| ) |
|
|
inherited |
◆ getByte()
pocketmine\utils\BinaryStream::getByte |
( |
| ) |
|
|
inherited |
◆ getCommandOriginData()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getCommandOriginData |
( |
| ) |
|
◆ getDouble()
pocketmine\utils\BinaryStream::getDouble |
( |
| ) |
|
|
inherited |
◆ getEntityLink()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getEntityLink |
( |
| ) |
|
◆ getEntityMetadata()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getEntityMetadata |
( |
| ) |
|
◆ getFloat()
pocketmine\utils\BinaryStream::getFloat |
( |
| ) |
|
|
inherited |
◆ getGameRules()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getGameRules |
( |
| ) |
|
◆ getInt()
pocketmine\utils\BinaryStream::getInt |
( |
| ) |
|
|
inherited |
◆ getItemStackWithoutStackId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getItemStackWithoutStackId |
( |
| ) |
|
◆ getItemStackWrapper()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getItemStackWrapper |
( |
| ) |
|
◆ getLDouble()
pocketmine\utils\BinaryStream::getLDouble |
( |
| ) |
|
|
inherited |
◆ getLFloat()
pocketmine\utils\BinaryStream::getLFloat |
( |
| ) |
|
|
inherited |
◆ getLInt()
pocketmine\utils\BinaryStream::getLInt |
( |
| ) |
|
|
inherited |
◆ getLLong()
pocketmine\utils\BinaryStream::getLLong |
( |
| ) |
|
|
inherited |
◆ getLong()
pocketmine\utils\BinaryStream::getLong |
( |
| ) |
|
|
inherited |
◆ getLShort()
pocketmine\utils\BinaryStream::getLShort |
( |
| ) |
|
|
inherited |
◆ getLTriad()
pocketmine\utils\BinaryStream::getLTriad |
( |
| ) |
|
|
inherited |
◆ getNbtCompoundRoot()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getNbtCompoundRoot |
( |
| ) |
|
◆ getNbtRoot()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getNbtRoot |
( |
| ) |
|
◆ getOffset()
pocketmine\utils\BinaryStream::getOffset |
( |
| ) |
|
|
inherited |
◆ getRecipeIngredient()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getRecipeIngredient |
( |
| ) |
|
◆ getRemaining()
pocketmine\utils\BinaryStream::getRemaining |
( |
| ) |
|
|
inherited |
◆ getRotationByte()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getRotationByte |
( |
| ) |
|
◆ getRoundedFloat()
pocketmine\utils\BinaryStream::getRoundedFloat |
( |
int | $accuracy | ) |
|
|
inherited |
◆ getRoundedLFloat()
pocketmine\utils\BinaryStream::getRoundedLFloat |
( |
int | $accuracy | ) |
|
|
inherited |
◆ getShort()
pocketmine\utils\BinaryStream::getShort |
( |
| ) |
|
|
inherited |
◆ getSignedBlockPosition()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getSignedBlockPosition |
( |
| ) |
|
◆ getSignedLShort()
pocketmine\utils\BinaryStream::getSignedLShort |
( |
| ) |
|
|
inherited |
◆ getSignedShort()
pocketmine\utils\BinaryStream::getSignedShort |
( |
| ) |
|
|
inherited |
◆ getSkin()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getSkin |
( |
| ) |
|
◆ getString()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getString |
( |
| ) |
|
- Exceptions
-
Definition at line 83 of file bedrock-protocol/src/serializer/PacketSerializer.php.
Referenced by pocketmine\network\mcpe\protocol\AddActorPacket\decodePayload(), pocketmine\network\mcpe\protocol\AvailableCommandsPacket\decodePayload(), pocketmine\network\mcpe\protocol\BookEditPacket\decodePayload(), pocketmine\network\mcpe\protocol\BossEventPacket\decodePayload(), pocketmine\network\mcpe\protocol\ClientboundDebugRendererPacket\decodePayload(), pocketmine\network\mcpe\protocol\ClientCacheMissResponsePacket\decodePayload(), pocketmine\network\mcpe\protocol\DimensionDataPacket\decodePayload(), pocketmine\network\mcpe\protocol\ItemComponentPacket\decodePayload(), pocketmine\network\mcpe\protocol\PlayerFogPacket\decodePayload(), pocketmine\network\mcpe\protocol\PlayerListPacket\decodePayload(), pocketmine\network\mcpe\protocol\PurchaseReceiptPacket\decodePayload(), pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket\decodePayload(), and pocketmine\network\mcpe\protocol\TextPacket\decodePayload().
◆ getStructureEditorData()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getStructureEditorData |
( |
| ) |
|
◆ getStructureSettings()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getStructureSettings |
( |
| ) |
|
◆ getTriad()
pocketmine\utils\BinaryStream::getTriad |
( |
| ) |
|
|
inherited |
◆ getUnsignedVarInt()
pocketmine\utils\BinaryStream::getUnsignedVarInt |
( |
| ) |
|
|
inherited |
◆ getUnsignedVarLong()
pocketmine\utils\BinaryStream::getUnsignedVarLong |
( |
| ) |
|
|
inherited |
Reads a 64-bit variable-length integer from the buffer and returns it.
@phpstan-impure
- Exceptions
-
Definition at line 341 of file BinaryStream.php.
◆ getUUID()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getUUID |
( |
| ) |
|
◆ getVarInt()
pocketmine\utils\BinaryStream::getVarInt |
( |
| ) |
|
|
inherited |
◆ getVarLong()
pocketmine\utils\BinaryStream::getVarLong |
( |
| ) |
|
|
inherited |
Reads a 64-bit zigzag-encoded variable-length integer from the buffer and returns it.
@phpstan-impure
- Exceptions
-
Definition at line 358 of file BinaryStream.php.
◆ getVector2()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getVector2 |
( |
| ) |
|
◆ getVector3()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::getVector3 |
( |
| ) |
|
◆ put()
pocketmine\utils\BinaryStream::put |
( |
string | $str | ) |
|
|
inherited |
◆ putActorRuntimeId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putActorRuntimeId |
( |
int | $eid | ) |
|
◆ putActorUniqueId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putActorUniqueId |
( |
int | $eid | ) |
|
◆ putBlockPosition()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putBlockPosition |
( |
BlockPosition | $blockPosition | ) |
|
◆ putBool()
pocketmine\utils\BinaryStream::putBool |
( |
bool | $v | ) |
|
|
inherited |
◆ putByte()
pocketmine\utils\BinaryStream::putByte |
( |
int | $v | ) |
|
|
inherited |
◆ putCommandOriginData()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putCommandOriginData |
( |
CommandOriginData | $data | ) |
|
◆ putDouble()
pocketmine\utils\BinaryStream::putDouble |
( |
float | $v | ) |
|
|
inherited |
◆ putEntityLink()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putEntityLink |
( |
EntityLink | $link | ) |
|
◆ putEntityMetadata()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putEntityMetadata |
( |
array | $metadata | ) |
|
◆ putFloat()
pocketmine\utils\BinaryStream::putFloat |
( |
float | $v | ) |
|
|
inherited |
◆ putGameRules()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putGameRules |
( |
array | $rules | ) |
|
◆ putInt()
pocketmine\utils\BinaryStream::putInt |
( |
int | $v | ) |
|
|
inherited |
◆ putItemStackWithoutStackId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putItemStackWithoutStackId |
( |
ItemStack | $itemStack | ) |
|
◆ putItemStackWrapper()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putItemStackWrapper |
( |
ItemStackWrapper | $itemStackWrapper | ) |
|
◆ putLDouble()
pocketmine\utils\BinaryStream::putLDouble |
( |
float | $v | ) |
|
|
inherited |
◆ putLFloat()
pocketmine\utils\BinaryStream::putLFloat |
( |
float | $v | ) |
|
|
inherited |
◆ putLInt()
pocketmine\utils\BinaryStream::putLInt |
( |
int | $v | ) |
|
|
inherited |
◆ putLLong()
pocketmine\utils\BinaryStream::putLLong |
( |
int | $v | ) |
|
|
inherited |
◆ putLong()
pocketmine\utils\BinaryStream::putLong |
( |
int | $v | ) |
|
|
inherited |
◆ putLShort()
pocketmine\utils\BinaryStream::putLShort |
( |
int | $v | ) |
|
|
inherited |
◆ putLTriad()
pocketmine\utils\BinaryStream::putLTriad |
( |
int | $v | ) |
|
|
inherited |
◆ putRecipeIngredient()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putRecipeIngredient |
( |
RecipeIngredient | $ingredient | ) |
|
◆ putRotationByte()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putRotationByte |
( |
float | $rotation | ) |
|
◆ putShort()
pocketmine\utils\BinaryStream::putShort |
( |
int | $v | ) |
|
|
inherited |
◆ putSignedBlockPosition()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putSignedBlockPosition |
( |
BlockPosition | $blockPosition | ) |
|
◆ putSkin()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putSkin |
( |
SkinData | $skin | ) |
|
◆ putString()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putString |
( |
string | $v | ) |
|
◆ putStructureEditorData()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putStructureEditorData |
( |
StructureEditorData | $structureEditorData | ) |
|
◆ putStructureSettings()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putStructureSettings |
( |
StructureSettings | $structureSettings | ) |
|
◆ putTriad()
pocketmine\utils\BinaryStream::putTriad |
( |
int | $v | ) |
|
|
inherited |
◆ putUnsignedVarInt()
pocketmine\utils\BinaryStream::putUnsignedVarInt |
( |
int | $v | ) |
|
|
inherited |
◆ putUnsignedVarLong()
pocketmine\utils\BinaryStream::putUnsignedVarLong |
( |
int | $v | ) |
|
|
inherited |
Writes a 64-bit variable-length integer to the end of the buffer.
Definition at line 348 of file BinaryStream.php.
◆ putUUID()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putUUID |
( |
UuidInterface | $uuid | ) |
|
◆ putVarInt()
pocketmine\utils\BinaryStream::putVarInt |
( |
int | $v | ) |
|
|
inherited |
◆ putVarLong()
pocketmine\utils\BinaryStream::putVarLong |
( |
int | $v | ) |
|
|
inherited |
◆ putVector2()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putVector2 |
( |
Vector2 | $vector2 | ) |
|
◆ putVector3()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putVector3 |
( |
Vector3 | $vector | ) |
|
◆ putVector3Nullable()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::putVector3Nullable |
( |
?Vector3 | $vector | ) |
|
Writes a floating-point Vector3 object, or 3x zero if null is given.
Note: ONLY use this where it is reasonable to allow not specifying the vector. For all other purposes, use the non-nullable version.
- See also
- PacketSerializer::putVector3()
Definition at line 504 of file bedrock-protocol/src/serializer/PacketSerializer.php.
◆ readCreativeItemNetId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readCreativeItemNetId |
( |
| ) |
|
◆ readItemStackNetIdVariant()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readItemStackNetIdVariant |
( |
| ) |
|
This is a union of ItemStackRequestId, LegacyItemStackRequestId, and ServerItemStackId, used in serverbound packets to allow the client to refer to server known items, or items which may have been modified by a previous as-yet unacknowledged request from the client.
- Server itemstack ID is positive
- InventoryTransaction "legacy" request ID is negative and even
- ItemStackRequest request ID is negative and odd
- 0 refers to an empty itemstack (air)
Definition at line 755 of file bedrock-protocol/src/serializer/PacketSerializer.php.
◆ readItemStackRequestId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readItemStackRequestId |
( |
| ) |
|
◆ readLegacyItemStackRequestId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readLegacyItemStackRequestId |
( |
| ) |
|
◆ readOptional()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readOptional |
( |
\Closure | $reader | ) |
|
◆ readRecipeNetId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readRecipeNetId |
( |
| ) |
|
◆ readServerItemStackId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::readServerItemStackId |
( |
| ) |
|
◆ rewind()
pocketmine\utils\BinaryStream::rewind |
( |
| ) |
|
|
inherited |
◆ setOffset()
pocketmine\utils\BinaryStream::setOffset |
( |
int | $offset | ) |
|
|
inherited |
◆ writeCreativeItemNetId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeCreativeItemNetId |
( |
int | $id | ) |
|
◆ writeItemStackNetIdVariant()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeItemStackNetIdVariant |
( |
int | $id | ) |
|
This is a union of ItemStackRequestId, LegacyItemStackRequestId, and ServerItemStackId, used in serverbound packets to allow the client to refer to server known items, or items which may have been modified by a previous as-yet unacknowledged request from the client.
Definition at line 764 of file bedrock-protocol/src/serializer/PacketSerializer.php.
◆ writeItemStackRequestId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeItemStackRequestId |
( |
int | $id | ) |
|
◆ writeLegacyItemStackRequestId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeLegacyItemStackRequestId |
( |
int | $id | ) |
|
◆ writeOptional()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeOptional |
( |
mixed | $value, |
|
|
\Closure | $writer ) |
◆ writeRecipeNetId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeRecipeNetId |
( |
int | $id | ) |
|
◆ writeServerItemStackId()
pocketmine\network\mcpe\protocol\serializer\PacketSerializer::writeServerItemStackId |
( |
int | $id | ) |
|
◆ $buffer
pocketmine\utils\BinaryStream::$buffer |
|
protectedinherited |
◆ $offset
pocketmine\utils\BinaryStream::$offset |
|
protectedinherited |
The documentation for this class was generated from the following file: