API Reference
On this page
Public Types | |
| using | PayloadType |
Public Member Functions | |
| virtual::MinecraftPacketIds | getId () const |
| virtual::std::string_view | getName () const |
| virtual::SerializationMode | getSerializationMode () const |
| virtual void | setSerializationMode (::SerializationMode mode) |
| virtual void | writeWithSerializationMode (::BinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx, ::std::optional<::SerializationMode > overrideMode) const |
| virtual void | write (::BinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx) const |
| virtual void | write (::BinaryStream &stream) const |
| virtual ::Bedrock::Result< void > | read (::ReadOnlyBinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx) |
| virtual bool | disallowBatching () const |
| virtual bool | isValid () const |
| virtual uint64 | getMaxSize () const |
| virtual::std::string | toString () const |
| virtual ::Bedrock::Result< void > | _read (::ReadOnlyBinaryStream &stream) |
| virtual ::Bedrock::Result< void > | _read (::ReadOnlyBinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx) |
| MCAPI::MinecraftPacketIds | $getId () const |
| MCAPI::std::string_view | $getName () const |
| MCAPI::SerializationMode | $getSerializationMode () const |
| MCAPI void | $setSerializationMode (::SerializationMode mode) |
| MCAPI void | $writeWithSerializationMode (::BinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx, ::std::optional<::SerializationMode > overrideMode) const |
| MCAPI void | $write (::BinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx) const |
| MCAPI void | $write (::BinaryStream &stream) const |
| MCAPI ::Bedrock::Result< void > | $read (::ReadOnlyBinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx) |
| MCAPI bool | $disallowBatching () const |
| MCAPI bool | $isValid () const |
| MCAPI uint64 | $getMaxSize () const |
| MCAPI::std::string | $toString () const |
| MCAPI ::Bedrock::Result< void > | $_read (::ReadOnlyBinaryStream &stream) |
| MCAPI ::Bedrock::Result< void > | $_read (::ReadOnlyBinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx) |
| LLAPI void | sendTo (Player const &player) const |
| LLAPI void | sendTo (BlockPos const &pos, DimensionType dimId, optional_ref< Player const > except=std::nullopt) const |
| LLAPI void | sendTo (Actor const &actor, optional_ref< Player const > except=std::nullopt) const |
| LLAPI void | sendToClient (NetworkIdentifier const &identifier, ::SubClientId clientId) const |
| LLAPI void | sendToClient (NetworkIdentifierWithSubId const &identifierWithSubId) const |
| LLAPI void | sendToClients () const |
| LLAPI void | sendToClients (NetworkIdentifier const &exceptId, ::SubClientId exceptSubid) const |
| LLAPI void | sendToServer () const |
| virtual ::Bedrock::Result< void > | checkSize (uint64 packetSize, bool receiverIsServer) const |
| virtual ::Bedrock::Result< void > | read (::ReadOnlyBinaryStream &bitStream) |
| MCAPI ::Bedrock::Result< void > | $checkSize (uint64 packetSize, bool receiverIsServer) const |
| MCAPI ::Bedrock::Result< void > | $read (::ReadOnlyBinaryStream &bitStream) |
Static Public Member Functions | |
| static MCAPI void ** | $vftable () |
Public Attributes | |
| ::ll::TypedStorage< 4, 4, ::SerializationMode > | mSerializationMode |
| ::PacketPriority | mPriority |
| ::NetworkPeer::Reliability | mReliability |
| ::SubClientId | mSenderSubId |
| bool | mIsHandled |
| ::std::chrono::steady_clock::time_point | mReceiveTimepoint |
| ::IPacketHandlerDispatcher const * | mHandler |
| ::Compressibility | mCompressible |
| ::ll::TypedStorage< 4, 4, float > | mServerTime |
| ::ll::TypedStorage< 4, 4, float > | mNetworkTime |
|
virtual |
Implements Packet.
|
virtual |
Implements Packet.
|
virtual |
Reimplemented from Packet.
|
virtual |
Reimplemented from Packet.
|
virtual |
Reimplemented from Packet.
|
virtual |
Implements Packet.
|
virtual |
Reimplemented from Packet.
|
virtual |
Reimplemented from Packet.
|
virtual |
Reimplemented from Packet.
|
virtual |
Implements Packet.
| MCAPI::MinecraftPacketIds ServerStatsPacket::$getId | ( | ) | const |
| MCAPI::std::string_view ServerStatsPacket::$getName | ( | ) | const |
| MCAPI::SerializationMode ServerStatsPacket::$getSerializationMode | ( | ) | const |
| MCAPI void ServerStatsPacket::$setSerializationMode | ( | ::SerializationMode | mode | ) |
| MCAPI void ServerStatsPacket::$writeWithSerializationMode | ( | ::BinaryStream & | stream, |
| ::cereal::ReflectionCtx const & | reflectionCtx, | ||
| ::std::optional<::SerializationMode > | overrideMode ) const |
| MCAPI void ServerStatsPacket::$write | ( | ::BinaryStream & | stream, |
| ::cereal::ReflectionCtx const & | reflectionCtx ) const |
| MCAPI void ServerStatsPacket::$write | ( | ::BinaryStream & | stream | ) | const |
| MCAPI ::Bedrock::Result< void > ServerStatsPacket::$read | ( | ::ReadOnlyBinaryStream & | bitStream, |
| ::cereal::ReflectionCtx const & | reflectionCtx ) |
| MCAPI bool ServerStatsPacket::$disallowBatching | ( | ) | const |
| MCAPI bool ServerStatsPacket::$isValid | ( | ) | const |
| MCAPI uint64 ServerStatsPacket::$getMaxSize | ( | ) | const |
| MCAPI::std::string ServerStatsPacket::$toString | ( | ) | const |
| MCAPI ::Bedrock::Result< void > ServerStatsPacket::$_read | ( | ::ReadOnlyBinaryStream & | stream | ) |
| MCAPI ::Bedrock::Result< void > ServerStatsPacket::$_read | ( | ::ReadOnlyBinaryStream & | stream, |
| ::cereal::ReflectionCtx const & | reflectionCtx ) |
|
static |
|
inherited |
Send the packet to a specific server player.
| player | The server player to send the packet to. |
|
inherited |
Send the packet to all relevant players in a 2D plane at a position in a given dimension.
| pos | The position to send the packet to. |
| dimId | The type of dimension to send the packet in. |
| except | exclude this player. |
|
inherited |
Send the packet to all relevant players within a specific actor.
| actor | The actor to send the packet to. |
| except | exclude this player. |
|
inherited |
Send the packet to a specific client identified by network identifier and sub-client ID.
| id | The network identifier of the client to send the packet to. |
| clientId | The sub-client ID of the client to send the packet to. |
|
inherited |
Send the packet to all clients connected to the server.