LeviLamina
Loading...
Searching...
No Matches
ClientboundMapItemDataPacket Class Reference
+ Inheritance diagram for ClientboundMapItemDataPacket:

Public Types

enum class  Type : int { Invalid = 0 , TextureUpdate = 1 << 1 , DecorationUpdate = 1 << 2 , Creation = 1 << 3 }
 

Public Member Functions

virtual void write (::BinaryStream &stream) const
 
virtual::MinecraftPacketIds getId () const
 
virtual::std::string getName () const
 
virtual ::Bedrock::Result< void > _read (::ReadOnlyBinaryStream &stream)
 
MCAPI ClientboundMapItemDataPacket (::gsl::not_null<::MapItemSavedData * > newMapItem, ::Level &level)
 
MCAPI ClientboundMapItemDataPacket (::ActorUniqueID mapId, schar scale, ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration > > > const &decorations, ::buffer_span< uint > mapColors, int startX, int startY, int width, int height, ::DimensionType dimension, bool isLocked, ::BlockPos const &mapOrigin)
 
MCAPI bool isOfType (::ClientboundMapItemDataPacket::Type type) const
 
MCAPI void * $ctor ()
 
MCAPI void * $ctor (::gsl::not_null<::MapItemSavedData * > newMapItem, ::Level &level)
 
MCAPI void * $ctor (::ActorUniqueID mapId, schar scale, ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration > > > const &decorations, ::buffer_span< uint > mapColors, int startX, int startY, int width, int height, ::DimensionType dimension, bool isLocked, ::BlockPos const &mapOrigin)
 
MCAPI void $dtor ()
 
MCAPI void $write (::BinaryStream &stream) const
 
MCAPI::MinecraftPacketIds $getId () const
 
MCAPI::std::string $getName () 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 void ** $vftable ()
 

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ActorUniqueID > > mMapIds
 
::ll::TypedStorage< 1, 1, char > mScale
 
::ll::TypedStorage< 8, 24, ::std::vector<::std::shared_ptr<::MapDecoration > > > mDecorations
 
::ll::TypedStorage< 8, 24, ::std::vector<::MapItemTrackedActor::UniqueId > > mUniqueIds
 
::ll::TypedStorage< 4, 4, int > mStartX
 
::ll::TypedStorage< 4, 4, int > mStartY
 
::ll::TypedStorage< 4, 12, ::BlockPosmMapOrigin
 
::ll::TypedStorage< 1, 1, uchar > mDimension
 
::ll::TypedStorage< 4, 4, int > mWidth
 
::ll::TypedStorage< 4, 4, int > mHeight
 
::ll::TypedStorage< 4, 4, ::ClientboundMapItemDataPacket::Type > mType
 
::ll::TypedStorage< 8, 24, ::std::vector< uint > > mMapPixels
 
::ll::TypedStorage< 1, 1, bool > mLocked
 
::PacketPriority mPriority
 
::NetworkPeer::Reliability mReliability
 
::SubClientId mClientSubId
 
bool mIsHandled
 
::std::chrono::steady_clock::time_point mReceiveTimepoint
 
::IPacketHandlerDispatcher const * mHandler
 
::Compressibility mCompressible
 

Member Function Documentation

◆ write()

virtual void ClientboundMapItemDataPacket::write ( ::BinaryStream & stream) const
virtual

Implements Packet.

◆ getId()

virtual::MinecraftPacketIds ClientboundMapItemDataPacket::getId ( ) const
virtual

Implements Packet.

◆ getName()

virtual::std::string ClientboundMapItemDataPacket::getName ( ) const
virtual

Implements Packet.

◆ _read()

virtual ::Bedrock::Result< void > ClientboundMapItemDataPacket::_read ( ::ReadOnlyBinaryStream & stream)
virtual

Implements Packet.

◆ 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.


The documentation for this class was generated from the following file: