LeviLamina
|
Public Types | |
enum class | NpcDialogueActionType : int { Open = 0 , Close = 1 } |
Public Member Functions | |
virtual::MinecraftPacketIds | getId () const |
virtual::std::string | getName () const |
virtual void | write (::BinaryStream &stream) const |
virtual ::Bedrock::Result< void > | _read (::ReadOnlyBinaryStream &stream) |
MCAPI | NpcDialoguePacket (::ActorUniqueID npcID) |
MCAPI ::Bedrock::Result< void > | _verifyJson (::std::string const &actionJSON) const |
MCAPI void * | $ctor (::ActorUniqueID npcID) |
MCAPI void | $dtor () |
MCAPI::MinecraftPacketIds | $getId () const |
MCAPI::std::string | $getName () const |
MCAPI void | $write (::BinaryStream &stream) const |
MCAPI ::Bedrock::Result< void > | $_read (::ReadOnlyBinaryStream &stream) |
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 ::Bedrock::Result< void > | checkSize (uint64 packetSize, bool receiverIsServer) const |
virtual ::Bedrock::Result< void > | read (::ReadOnlyBinaryStream &bitStream) |
virtual bool | disallowBatching () const |
virtual bool | isValid () const |
MCAPI ::Bedrock::Result< void > | readNoHeader (::ReadOnlyBinaryStream &bitstream, ::SubClientId const &subid) |
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 |
Static Public Member Functions | |
static MCAPI bool | initializePacket (::NpcDialoguePacket &outPacket, ::NpcDialogueStorage const *storage, ::std::string const &sceneName) |
static MCAPI uint64 const & | MAX_NUM_ACTIONS () |
static MCAPI void ** | $vftable () |
Public Attributes | |
::ll::TypedStorage< 8, 8, ::ActorUniqueID > | mNpcId |
::ll::TypedStorage< 4, 4, ::NpcDialoguePacket::NpcDialogueActionType > | mNpcDialogueActionType |
::ll::TypedStorage< 8, 32, ::std::string > | mDialogue |
::ll::TypedStorage< 8, 32, ::std::string > | mSceneName |
::ll::TypedStorage< 8, 32, ::std::string > | mNpcName |
::ll::TypedStorage< 8, 32, ::std::string > | mActionJSON |
::PacketPriority | mPriority |
::NetworkPeer::Reliability | mReliability |
::SubClientId | mClientSubId |
bool | mIsHandled |
::std::chrono::steady_clock::time_point | mReceiveTimepoint |
::IPacketHandlerDispatcher const * | mHandler |
::Compressibility | mCompressible |
|
virtual |
Implements Packet.
|
virtual |
Implements Packet.
|
virtual |
Implements Packet.
|
virtual |
Implements Packet.
|
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.