21class LootTableContext {
33 ::ll::TypedStorage<8, 8, ::ILevel*> mLevel;
34 ::ll::TypedStorage<4, 4, float> mLuck;
35 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mThisEntityID;
36 ::ll::TypedStorage<8, 8, ::Player*> mKillerPlayer;
37 ::ll::TypedStorage<8, 8, ::Actor*> mKilledActor;
38 ::ll::TypedStorage<8, 8, ::ActorDamageSource const*> mDeathSource;
39 ::ll::TypedStorage<4, 4, float> mExplosionRadius;
40 ::ll::TypedStorage<8, 32, ::std::string> mOriginalItemName;
41 ::ll::TypedStorage<8, 8, ::ItemStack const*> mTool;
42 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionId;
54 MCAPI ::LootTableContext create()
const;
58 MCAPI ::LootTableContext::Builder& withExplosionRadius(
float explosionRadius);
60 MCAPI ::LootTableContext::Builder& withKilledActor(
::Actor* actor);
62 MCFOLD ::LootTableContext::Builder& withKillerPlayer(
::Player* player);
64 MCAPI ::LootTableContext::Builder& withLuck(
float luck);
66 MCAPI ::LootTableContext::Builder& withThisEntity(
::Actor* actor);
68 MCAPI ::LootTableContext::Builder& withTool(
::ItemStack const* tool);
89 ::ll::TypedStorage<4, 4, float> mLuck;
90 ::ll::TypedStorage<8, 8, ::ILevel*> mLevel;
91 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mThisEntityID;
92 ::ll::TypedStorage<8, 8, ::Player*> mKillerPlayer;
93 ::ll::TypedStorage<8, 8, ::Actor*> mKilledActor;
94 ::ll::TypedStorage<8, 8, ::ActorDamageSource const*> mDeathSource;
95 ::ll::TypedStorage<8, 64, ::std::unordered_set<::LootTable const*>> mVisitedTables;
96 ::ll::TypedStorage<4, 4, float> mExplosionRadius;
97 ::ll::TypedStorage<8, 32, ::std::string> mOriginalItemName;
98 ::ll::TypedStorage<8, 8, ::ItemStack const*> mTool;
99 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionId;
109 MCAPI LootTableContext(
116 float explosionRadius,
121 MCAPI ::Actor* getDamagingEntity()
const;
123 MCAPI ::DimensionType getDimensionId()
const;
125 MCAPI ::Actor* getEntity(::ActorTarget target,
bool getRemoved)
const;
127 MCAPI
float getExplosionRadius()
const;
129 MCFOLD ::Actor* getKilledEntity()
const;
131 MCAPI ::Actor* getKillerEntity()
const;
133 MCAPI ::Actor* getKillerPet()
const;
135 MCFOLD ::Actor* getKillerPlayer()
const;
137 MCFOLD ::Level* getLevel()
const;
139 MCAPI ::std::string getOriginalItemName()
const;
141 MCAPI ::Actor* getThisEntity(
bool getRemoved)
const;
143 MCAPI ::Actor* getThisVehicleEntity()
const;
145 MCFOLD ::ItemStack
const* getTool()
const;
147 MCAPI
void setOriginalItemName(::std::string
const& originalItemName);
149 MCAPI ~LootTableContext();
162 float explosionRadius,
Definition LootTableContext.h:29