31class ItemActor :
public ::Actor {
43 ::ll::TypedStorage<1, 1, bool> mUseAdjustments;
44 ::ll::TypedStorage<4, 4, float> mFirstRenderedYaw;
51 ::ll::TypedStorage<8, 152, ::ItemStack> mItem;
52 ::ll::TypedStorage<4, 4, int> mAge;
53 ::ll::TypedStorage<4, 4, int> mPickupDelay;
54 ::ll::TypedStorage<4, 4, int> mThrowTime;
55 ::ll::TypedStorage<4, 4, float> mBobOffs;
56 ::ll::TypedStorage<4, 4, int> mHealth;
57 ::ll::TypedStorage<4, 4, int> mLifeTime;
58 ::ll::TypedStorage<1, 1, bool> mIsInItemFrame;
59 ::ll::TypedStorage<1, 1, bool> mIsFromFishing;
60 ::ll::TypedStorage<4, 12, ::std::optional<::ItemActor::ItemRenderAdjustments>> mRenderAdjustments;
67 LLNDAPI
int const& age()
const;
68 LLNDAPI
int& pickupDelay();
69 LLNDAPI
int const& pickupDelay()
const;
70 LLNDAPI
int& throwTime();
71 LLNDAPI
int const& throwTime()
const;
72 LLNDAPI
float& bobOffs();
73 LLNDAPI
float const& bobOffs()
const;
74 LLNDAPI
int& health();
75 LLNDAPI
int const& health()
const;
76 LLNDAPI
int& lifeTime();
77 LLNDAPI
int const& lifeTime()
const;
78 LLNDAPI
bool& isInItemFrame();
79 LLNDAPI
bool const& isInItemFrame()
const;
80 LLNDAPI
bool& isFromFishing();
81 LLNDAPI
bool const& isFromFishing()
const;
82 LLNDAPI
static ItemActor* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
89 virtual ~ItemActor() =
default;
91 virtual void playerTouch(
::Player& player) ;
93 virtual ::std::unique_ptr<::Packet> tryCreateAddActorPacket() ;
95 virtual ::ActorUniqueID getSourceUniqueID() const ;
99 virtual
bool canSynchronizeNewEntity() const ;
101 virtual
void handleEntityEvent(::ActorEvent eventId,
int data) ;
103 virtual
bool isFireImmune() const ;
107 virtual
void addAdditionalSaveData(::
CompoundTag& entityTag) const ;
121 MCAPI
void _addComponents();
123 MCAPI
void _dropContents();
125 MCAPI
void _dropItemList(::
ListTag* itemList);
127 MCAPI
bool _merge(::ItemActor* target);
129 MCAPI
void _mergeWithNeighbours();
131 MCAPI
void _validateItem();
134 MCAPI
void clientInitialize(
143 MCFOLD ::std::optional<::ItemActor::ItemRenderAdjustments>
const& getRenderAdjustments()
const;
145 MCFOLD ::std::optional<::ItemActor::ItemRenderAdjustments>& getRenderAdjustments();
148 MCAPI
void postNormalTick();
150 MCAPI
void setSourceEntity(::Actor
const* owner);
174 MCAPI
void $playerTouch(
::Player& player);
176 MCAPI ::std::unique_ptr<::Packet> $tryCreateAddActorPacket();
178 MCFOLD ::ActorUniqueID $getSourceUniqueID()
const;
182 MCAPI
bool $canSynchronizeNewEntity()
const;
184 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
186 MCAPI
bool $isFireImmune()
const;
190 MCAPI
void $addAdditionalSaveData(
::CompoundTag& entityTag)
const;
200 MCAPI
static void** $vftable();
Definition EntityContext.h:17