|
constexpr | Packet (PacketPriority priority=PacketPriority::MediumPriority, NetworkPeer::Reliability reliability=NetworkPeer::Reliability::ReliableOrdered, SubClientId clientSubId=SubClientId::PrimaryClient, bool compress=true) |
|
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 |
|
virtual::MinecraftPacketIds | getId () const =0 |
|
virtual::std::string | getName () const =0 |
|
virtual ::Bedrock::Result< void > | checkSize (uint64 packetSize, bool receiverIsServer) const |
|
virtual void | write (::BinaryStream &) const =0 |
|
virtual ::Bedrock::Result< void > | read (::ReadOnlyBinaryStream &bitStream) |
|
virtual bool | disallowBatching () const |
|
virtual bool | isValid () const |
|
virtual ::Bedrock::Result< void > | _read (::ReadOnlyBinaryStream &)=0 |
|
MCAPI ::Bedrock::Result< void > | readNoHeader (::ReadOnlyBinaryStream &bitstream, ::SubClientId const &subid) |
|
MCFOLD void | $dtor () |
|
MCAPI ::Bedrock::Result< void > | $checkSize (uint64 packetSize, bool receiverIsServer) const |
|
MCAPI ::Bedrock::Result< void > | $read (::ReadOnlyBinaryStream &bitStream) |
|
MCFOLD bool | $disallowBatching () const |
|
MCFOLD bool | $isValid () const |
|
|
::PacketPriority | mPriority |
|
::NetworkPeer::Reliability | mReliability |
|
::SubClientId | mSenderSubId |
|
bool | mIsHandled |
|
::std::chrono::steady_clock::time_point | mReceiveTimepoint |
|
::IPacketHandlerDispatcher const * | mHandler |
|
::Compressibility | mCompressible |
|
◆ sendTo() [1/3]
LLAPI void Packet::sendTo |
( |
Player const & | player | ) |
const |
Send the packet to a specific server player.
- Parameters
-
player | The server player to send the packet to. |
◆ sendTo() [2/3]
Send the packet to all relevant players in a 2D plane at a position in a given dimension.
- Parameters
-
pos | The position to send the packet to. |
dimId | The type of dimension to send the packet in. |
except | exclude this player. |
◆ sendTo() [3/3]
Send the packet to all relevant players within a specific actor.
- Parameters
-
actor | The actor to send the packet to. |
except | exclude this player. |
◆ sendToClient()
LLAPI void Packet::sendToClient |
( |
NetworkIdentifier const & | identifier, |
|
|
::SubClientId | clientId ) const |
Send the packet to a specific client identified by network identifier and sub-client ID.
- Parameters
-
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. |
◆ sendToClients()
LLAPI void Packet::sendToClients |
( |
| ) |
const |
Send the packet to all clients connected to the server.
◆ $vftable()
static MCAPI void ** Packet::$vftable |
( |
| ) |
|
|
static |
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
The documentation for this class was generated from the following file: