29class ItemActor :
public ::Actor {
41 ::ll::TypedStorage<1, 1, bool> mUseAdjustments;
42 ::ll::TypedStorage<4, 4, float> mFirstRenderedYaw;
49 ::ll::TypedStorage<8, 152, ::ItemStack> mItem;
50 ::ll::TypedStorage<4, 4, int> mAge;
51 ::ll::TypedStorage<4, 4, int> mPickupDelay;
52 ::ll::TypedStorage<4, 4, int> mThrowTime;
53 ::ll::TypedStorage<4, 4, float> mBobOffs;
54 ::ll::TypedStorage<4, 4, int> mHealth;
55 ::ll::TypedStorage<4, 4, int> mLifeTime;
56 ::ll::TypedStorage<1, 1, bool> mIsInItemFrame;
57 ::ll::TypedStorage<1, 1, bool> mIsFromFishing;
58 ::ll::TypedStorage<4, 12, ::std::optional<::ItemActor::ItemRenderAdjustments>> mRenderAdjustments;
65 LLNDAPI
int const& age()
const;
66 LLNDAPI
int& pickupDelay();
67 LLNDAPI
int const& pickupDelay()
const;
68 LLNDAPI
int& throwTime();
69 LLNDAPI
int const& throwTime()
const;
70 LLNDAPI
float& bobOffs();
71 LLNDAPI
float const& bobOffs()
const;
72 LLNDAPI
int& health();
73 LLNDAPI
int const& health()
const;
74 LLNDAPI
int& lifeTime();
75 LLNDAPI
int const& lifeTime()
const;
76 LLNDAPI
bool& isInItemFrame();
77 LLNDAPI
bool const& isInItemFrame()
const;
78 LLNDAPI
bool& isFromFishing();
79 LLNDAPI
bool const& isFromFishing()
const;
86 virtual ~ItemActor() =
default;
88 virtual void playerTouch(
::Player& player) ;
90 virtual ::std::unique_ptr<::Packet> tryCreateAddActorPacket() ;
92 virtual ::ActorUniqueID getSourceUniqueID() const ;
96 virtual
bool canSynchronizeNewEntity() const ;
98 virtual
void handleEntityEvent(::ActorEvent eventId,
int data) ;
100 virtual
bool isFireImmune() const ;
104 virtual
void addAdditionalSaveData(::
CompoundTag& entityTag) const ;
118 MCAPI
void _addComponents();
120 MCAPI
void _dropContents();
122 MCAPI
void _dropItemList(::
ListTag* itemList);
124 MCAPI
bool _merge(::ItemActor* target);
126 MCAPI
void _mergeWithNeighbours();
128 MCAPI
void _validateItem();
130 MCAPI_C
void clientInitialize(
139 MCAPI
void postNormalTick();
157 MCAPI
void $playerTouch(::
Player& player);
159 MCAPI ::
std::unique_ptr<::
Packet> $tryCreateAddActorPacket();
165 MCFOLD
bool $canSynchronizeNewEntity() const;
167 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
169 MCAPI
bool $isFireImmune() const;
173 MCAPI
void $addAdditionalSaveData(::
CompoundTag& entityTag) const;
183 MCAPI static
void** $vftable();
Definition EntityContext.h:16