LeviLamina
Loading...
Searching...
No Matches
MobEffectPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/packet/Packet.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class ActorRuntimeID;
13class BinaryStream;
15struct EffectDuration;
16struct PlayerInputTick;
17// clang-format on
18
19class MobEffectPacket : public ::Packet {
20public:
21 // MobEffectPacket inner types define
22 enum class Event : uchar {
23 Invalid = 0,
24 Add = 1,
25 Update = 2,
26 Remove = 3,
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
33 ::ll::TypedStorage<4, 4, ::EffectDuration> mEffectDurationTicks;
34 ::ll::TypedStorage<1, 1, ::MobEffectPacket::Event> mEventId;
35 ::ll::TypedStorage<4, 4, int> mEffectId;
36 ::ll::TypedStorage<4, 4, int> mEffectAmplifier;
37 ::ll::TypedStorage<1, 1, bool> mShowParticles;
38 ::ll::TypedStorage<8, 8, ::PlayerInputTick> mTick;
39 // NOLINTEND
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 1
45 virtual ::MinecraftPacketIds getId() const /*override*/;
46
47 // vIndex: 2
48 virtual ::std::string getName() const /*override*/;
49
50 // vIndex: 4
51 virtual void write(::BinaryStream& stream) const /*override*/;
52
53 // vIndex: 8
54 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
55
56 // vIndex: 0
57 virtual ~MobEffectPacket() /*override*/ = default;
58 // NOLINTEND
59
60public:
61 // destructor thunk
62 // NOLINTBEGIN
63
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI ::MinecraftPacketIds $getId() const;
70
71 MCAPI ::std::string $getName() const;
72
73 MCAPI void $write(::BinaryStream& stream) const;
74
75 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCAPI static void** $vftable();
82 // NOLINTEND
83};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition MobEffectPacket.h:19
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition EffectDuration.h:5
Definition PlayerInputTick.h:5