LeviLamina
Loading...
Searching...
No Matches
ItemActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/item/ItemStack.h"
5
6// auto generated inclusion list
7#include "mc/world/actor/Actor.h"
8#include "mc/world/actor/ActorEvent.h"
9#include "mc/world/actor/ActorInitializationMethod.h"
10
11// auto generated forward declare list
12// clang-format off
16class CompoundTag;
17class DataLoadHelper;
18class EntityContext;
19class ItemStack;
20class ListTag;
21class Player;
23struct ActorUniqueID;
25// clang-format on
26
27class ItemActor : public ::Actor {
28protected:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 152, ::ItemStack> mItem;
32 ::ll::TypedStorage<4, 4, int> mAge;
33 ::ll::TypedStorage<4, 4, int> mPickupDelay;
34 ::ll::TypedStorage<4, 4, int> mThrowTime;
35 ::ll::TypedStorage<4, 4, float> mBobOffs;
36 ::ll::TypedStorage<4, 4, int> mHealth;
37 ::ll::TypedStorage<4, 4, int> mLifeTime;
38 ::ll::TypedStorage<1, 1, bool> mIsInItemFrame;
39 ::ll::TypedStorage<1, 1, bool> mIsFromFishing;
40 // NOLINTEND
41
42public:
43 LLNDAPI ItemStack& item();
44 LLNDAPI ItemStack const& item() const;
45 LLNDAPI int& age();
46 LLNDAPI int const& age() const;
47 LLNDAPI int& pickupDelay();
48 LLNDAPI int const& pickupDelay() const;
49 LLNDAPI int& throwTime();
50 LLNDAPI int const& throwTime() const;
51 LLNDAPI float& bobOffs();
52 LLNDAPI float const& bobOffs() const;
53 LLNDAPI int& health();
54 LLNDAPI int const& health() const;
55 LLNDAPI int& lifeTime();
56 LLNDAPI int const& lifeTime() const;
57 LLNDAPI bool& isInItemFrame();
58 LLNDAPI bool const& isInItemFrame() const;
59 LLNDAPI bool& isFromFishing();
60 LLNDAPI bool const& isFromFishing() const;
61
62public:
63 // virtual functions
64 // NOLINTBEGIN
65 // vIndex: 2
66 virtual void reloadHardcoded(::ActorInitializationMethod, ::VariantParameterList const&) /*override*/;
67
68 // vIndex: 8
69 virtual ~ItemActor() /*override*/ = default;
70
71 // vIndex: 39
72 virtual void playerTouch(::Player& player) /*override*/;
73
74 // vIndex: 23
75 virtual ::std::unique_ptr<::AddActorBasePacket> tryCreateAddActorPacket() /*override*/;
76
77 // vIndex: 84
78 virtual ::ActorUniqueID getSourceUniqueID() const /*override*/;
79
80 // vIndex: 64
81 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
82
83 // vIndex: 99
84 virtual bool canSynchronizeNewEntity() const /*override*/;
85
86 // vIndex: 69
87 virtual void handleEntityEvent(::ActorEvent eventId, int data) /*override*/;
88
89 // vIndex: 18
90 virtual bool isFireImmune() const /*override*/;
91
92 // vIndex: 135
93 virtual bool _hurt(::ActorDamageSource const&, float damage, bool, bool) /*override*/;
94
95 // vIndex: 137
96 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
97
98 // vIndex: 136
99 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
100 // NOLINTEND
101
102public:
103 // member functions
104 // NOLINTBEGIN
105 MCAPI ItemActor(
106 ::ActorDefinitionGroup* definitions,
107 ::ActorDefinitionIdentifier const& definitionName,
108 ::EntityContext& entityContext
109 );
110
111 MCAPI void _addComponents();
112
113 MCAPI void _dropContents();
114
115 MCAPI void _dropItemList(::ListTag* itemList);
116
117 MCAPI bool _merge(::ItemActor* target);
118
119 MCAPI void _mergeWithNeighbours();
120
121 MCAPI void _validateItem();
122
123 MCAPI void postNormalTick();
124 // NOLINTEND
125
126public:
127 // constructor thunks
128 // NOLINTBEGIN
129 MCAPI void* $ctor(
130 ::ActorDefinitionGroup* definitions,
131 ::ActorDefinitionIdentifier const& definitionName,
132 ::EntityContext& entityContext
133 );
134 // NOLINTEND
135
136public:
137 // destructor thunk
138 // NOLINTBEGIN
139
140 // NOLINTEND
141
142public:
143 // virtual function thunks
144 // NOLINTBEGIN
145 MCAPI void $reloadHardcoded(::ActorInitializationMethod, ::VariantParameterList const&);
146
147 MCAPI void $playerTouch(::Player& player);
148
149 MCAPI ::std::unique_ptr<::AddActorBasePacket> $tryCreateAddActorPacket();
150
151 MCFOLD ::ActorUniqueID $getSourceUniqueID() const;
152
153 MCAPI bool $isInvulnerableTo(::ActorDamageSource const& source) const;
154
155 MCFOLD bool $canSynchronizeNewEntity() const;
156
157 MCAPI bool $isFireImmune() const;
158
159 MCAPI bool $_hurt(::ActorDamageSource const&, float damage, bool, bool);
160
161 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
162
163 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
164 // NOLINTEND
165
166public:
167 // vftables
168 // NOLINTBEGIN
169 MCAPI static void** $vftable();
170 // NOLINTEND
171};
Definition ActorDamageSource.h:18
Definition ActorDefinitionGroup.h:27
Definition Actor.h:104
Definition AddActorBasePacket.h:15
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition ItemActor.h:27
Definition ItemStack.h:25
Definition ListTag.h:12
Definition Player.h:119
Definition ActorDefinitionIdentifier.h:13
Definition ActorUniqueID.h:5
Definition VariantParameterList.h:5