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

Public Types

using PayloadType
enum class  Type : int {
  Achievement = 0 , Interaction = 1 , PortalCreated = 2 , PortalUsed = 3 ,
  MobKilled = 4 , CauldronUsed = 5 , PlayerDied = 6 , BossKilled = 7 ,
  AgentCommandObsolete = 8 , AgentCreated = 9 , PatternRemovedObsolete = 10 , SlashCommand = 11 ,
  FishBucketedObsolete = 12 , MobBorn = 13 , PetDiedObsolete = 14 , POICauldronUsed = 15 ,
  ComposterUsed = 16 , BellUsed = 17 , ActorDefinition = 18 , RaidUpdate = 19 ,
  PlayerMovementAnomalyObsolete = 20 , PlayerMovementCorrectedObsolete = 21 , HoneyHarvested = 22 , TargetBlockHit = 23 ,
  PiglinBarter = 24 , PlayerWaxedOrUnwaxedCopper = 25 , CodeBuilderRuntimeAction = 26 , CodeBuilderScoreboard = 27 ,
  StriderRiddenInLavaInOverworld = 28 , SneakCloseToSculkSensor = 29 , CarefulRestoration = 30 , ItemUsed = 31
}
using EventData

Public Member Functions

LegacyTelemetryEventPacketoperator= (LegacyTelemetryEventPacket const &)
 LegacyTelemetryEventPacket (LegacyTelemetryEventPacket const &)
virtual::MinecraftPacketIds getId () const
virtual::std::string 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 &bitStream, ::cereal::ReflectionCtx const &reflectionCtx)
MCAPI LegacyTelemetryEventPacket (::LegacyTelemetryEventPacketPayload payload)
MCAPI::LegacyTelemetryEventPacket & operator= (::LegacyTelemetryEventPacket &&)
MCAPI void * $ctor ()
MCAPI void * $ctor (::LegacyTelemetryEventPacketPayload payload)
MCAPI void $dtor ()
MCAPI::MinecraftPacketIds $getId () const
MCAPI::std::string $getName () const
MCFOLD::SerializationMode $getSerializationMode () const
MCFOLD void $setSerializationMode (::SerializationMode mode)
MCAPI void $writeWithSerializationMode (::BinaryStream &stream, ::cereal::ReflectionCtx const &reflectionCtx, ::std::optional<::SerializationMode > overrideMode) const
MCFOLD 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)
MCFOLD bool $disallowBatching () const
MCFOLD bool $isValid () const
MCFOLD uint64 $getMaxSize () const
MCAPI::std::string $toString () const
MCAPI ::Bedrock::Result< void > $_read (::ReadOnlyBinaryStream &stream)
MCAPI ::Bedrock::Result< void > $_read (::ReadOnlyBinaryStream &bitStream, ::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 > readNoHeader (::ReadOnlyBinaryStream &bitstream, ::cereal::ReflectionCtx const &reflectionCtx, ::SubClientId const &subid)
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< 8, 8, ::ActorUniqueIDmPlayerUniqueId
::ll::TypedStorage< 4, 4, ::LegacyTelemetryEventPacketPayload::Type > mType
::ll::TypedStorage< 1, 1, bool > mUsePlayerID
::ll::TypedStorage< 8, 80, ::std::variant< ::LegacyTelemetryEventPacketPayload::Achievement, ::LegacyTelemetryEventPacketPayload::Interaction, ::LegacyTelemetryEventPacketPayload::PortalCreated, ::LegacyTelemetryEventPacketPayload::PortalUsed, ::LegacyTelemetryEventPacketPayload::MobKilled, ::LegacyTelemetryEventPacketPayload::CauldronUsed, ::LegacyTelemetryEventPacketPayload::PlayerDied, ::LegacyTelemetryEventPacketPayload::BossKilled, ::LegacyTelemetryEventPacketPayload::SlashCommand, ::LegacyTelemetryEventPacketPayload::MobBorn, ::LegacyTelemetryEventPacketPayload::POICauldronUsed, ::LegacyTelemetryEventPacketPayload::ComposterUsed, ::LegacyTelemetryEventPacketPayload::BellUsed, ::LegacyTelemetryEventPacketPayload::ActorDefinition, ::LegacyTelemetryEventPacketPayload::RaidUpdate, ::LegacyTelemetryEventPacketPayload::TargetBlockHit, ::LegacyTelemetryEventPacketPayload::PiglinBarter, ::LegacyTelemetryEventPacketPayload::PlayerWaxedOrUnwaxedCopper, ::LegacyTelemetryEventPacketPayload::CodeBuilderRuntimeAction, ::LegacyTelemetryEventPacketPayload::CodeBuilderScoreboard, ::LegacyTelemetryEventPacketPayload::ItemUsed, ::LegacyTelemetryEventPacketPayload::Empty > > mEventData

Member Typedef Documentation

◆ EventData

using LegacyTelemetryEventPacketPayload::EventData
inherited
Initial value:
::std::variant<
Definition LegacyTelemetryEventPacketPayload.h:74
Definition LegacyTelemetryEventPacketPayload.h:82
Definition LegacyTelemetryEventPacketPayload.h:113
Definition LegacyTelemetryEventPacketPayload.h:121
Definition LegacyTelemetryEventPacketPayload.h:131
Definition LegacyTelemetryEventPacketPayload.h:141
Definition LegacyTelemetryEventPacketPayload.h:172
Definition LegacyTelemetryEventPacketPayload.h:204
Definition LegacyTelemetryEventPacketPayload.h:213
Definition LegacyTelemetryEventPacketPayload.h:215
Definition LegacyTelemetryEventPacketPayload.h:227
Definition LegacyTelemetryEventPacketPayload.h:238
Definition LegacyTelemetryEventPacketPayload.h:248
Definition LegacyTelemetryEventPacketPayload.h:284
Definition LegacyTelemetryEventPacketPayload.h:293
Definition LegacyTelemetryEventPacketPayload.h:302
Definition LegacyTelemetryEventPacketPayload.h:313
Definition LegacyTelemetryEventPacketPayload.h:321
Definition LegacyTelemetryEventPacketPayload.h:329
Definition LegacyTelemetryEventPacketPayload.h:338
Definition LegacyTelemetryEventPacketPayload.h:348
Definition LegacyTelemetryEventPacketPayload.h:384

Member Function Documentation

◆ getId()

virtual::MinecraftPacketIds LegacyTelemetryEventPacket::getId ( ) const
virtual

Implements Packet.

◆ getName()

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

Implements Packet.

◆ setSerializationMode()

virtual void LegacyTelemetryEventPacket::setSerializationMode ( ::SerializationMode mode)
virtual

Reimplemented from Packet.

◆ writeWithSerializationMode()

virtual void LegacyTelemetryEventPacket::writeWithSerializationMode ( ::BinaryStream & stream,
::cereal::ReflectionCtx const & reflectionCtx,
::std::optional<::SerializationMode > overrideMode ) const
virtual

Reimplemented from Packet.

◆ write() [1/2]

virtual void LegacyTelemetryEventPacket::write ( ::BinaryStream & stream,
::cereal::ReflectionCtx const & reflectionCtx ) const
virtual

Reimplemented from Packet.

◆ write() [2/2]

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

Implements Packet.

◆ disallowBatching()

virtual bool LegacyTelemetryEventPacket::disallowBatching ( ) const
virtual

Reimplemented from Packet.

◆ isValid()

virtual bool LegacyTelemetryEventPacket::isValid ( ) const
virtual

Reimplemented from Packet.

◆ getMaxSize()

virtual uint64 LegacyTelemetryEventPacket::getMaxSize ( ) const
virtual

Reimplemented from Packet.

◆ _read()

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

Implements Packet.

◆ $vftable()

MCAPI void ** LegacyTelemetryEventPacket::$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.

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