LeviLamina
Loading...
Searching...
No Matches
InventoryPacket Class Referenceabstract
Inheritance diagram for InventoryPacket:

Public Member Functions

virtual void handle (::ServerPlayer &, ::BlockPalette &, ::MoveInputComponent const &, ::ActorRotationComponent &, bool) const =0
MCFOLD void $dtor ()
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 uint64 getMaxSize () const
virtual ::Bedrock::Result< void > checkSize (uint64 packetSize, bool receiverIsServer) const
virtual void writeWithSerializationMode (::BinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx, ::std::optional<::SerializationMode >) const
virtual void write (::BinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx) const
virtual void write (::BinaryStream &) const =0
virtual ::Bedrock::Result< void > read (::ReadOnlyBinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx)
virtual ::Bedrock::Result< void > read (::ReadOnlyBinaryStream &bitStream)
virtual bool disallowBatching () const
virtual bool isValid () const
virtual::SerializationMode getSerializationMode () const
virtual void setSerializationMode (::SerializationMode)
virtual::std::string toString () const
virtual ::Bedrock::Result< void > _read (::ReadOnlyBinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx)
virtual ::Bedrock::Result< void > _read (::ReadOnlyBinaryStream &)=0
MCAPI ::Bedrock::Result< void > readNoHeader (::ReadOnlyBinaryStream &bitstream, ::cereal::ReflectionCtx const &reflectionCtx, ::SubClientId const &subid)
MCFOLD uint64 $getMaxSize () const
MCAPI ::Bedrock::Result< void > $checkSize (uint64 packetSize, bool receiverIsServer) const
MCAPI void $writeWithSerializationMode (::BinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx, ::std::optional<::SerializationMode >) const
MCAPI void $write (::BinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx) const
MCFOLD ::Bedrock::Result< void > $read (::ReadOnlyBinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx)
MCAPI ::Bedrock::Result< void > $read (::ReadOnlyBinaryStream &bitStream)
MCFOLD bool $disallowBatching () const
MCFOLD bool $isValid () const
MCFOLD::SerializationMode $getSerializationMode () const
MCFOLD void $setSerializationMode (::SerializationMode)
MCFOLD::std::string $toString () const
MCFOLD ::Bedrock::Result< void > $_read (::ReadOnlyBinaryStream &bitStream, ::cereal::ReflectionCtx const &reflectionCtx)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::PacketPriority mPriority
::NetworkPeer::Reliability mReliability
::SubClientId mSenderSubId
bool mIsHandled
::std::chrono::steady_clock::time_point mReceiveTimepoint
::IPacketHandlerDispatcher const * mHandler
::Compressibility mCompressible

Member Function Documentation

◆ sendTo() [1/3]

LLAPI void Packet::sendTo ( Player const & player) const
inherited

Send the packet to a specific server player.

Parameters
playerThe server player to send the packet to.

◆ sendTo() [2/3]

LLAPI void Packet::sendTo ( BlockPos const & pos,
DimensionType dimId,
optional_ref< Player const > except = std::nullopt ) const
inherited

Send the packet to all relevant players in a 2D plane at a position in a given dimension.

Parameters
posThe position to send the packet to.
dimIdThe type of dimension to send the packet in.
exceptexclude this player.

◆ sendTo() [3/3]

LLAPI void Packet::sendTo ( Actor const & actor,
optional_ref< Player const > except = std::nullopt ) const
inherited

Send the packet to all relevant players within a specific actor.

Parameters
actorThe actor to send the packet to.
exceptexclude this player.

◆ sendToClient()

LLAPI void Packet::sendToClient ( NetworkIdentifier const & identifier,
::SubClientId clientId ) const
inherited

Send the packet to a specific client identified by network identifier and sub-client ID.

Parameters
idThe network identifier of the client to send the packet to.
clientIdThe sub-client ID of the client to send the packet to.

◆ sendToClients()

LLAPI void Packet::sendToClients ( ) const
inherited

Send the packet to all clients connected to the server.

◆ $vftable()

MCAPI void ** Packet::$vftable ( )
staticinherited
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: