LeviLamina
Loading...
Searching...
No Matches
ResourceDropsContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/BlockPos.h"
7#include "mc/world/level/block/ResourceDropsCause.h"
8#include "mc/world/level/dimension/DimensionType.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockActor;
13class IBlockSource;
14class ILevel;
15class ItemStack;
16class Random;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::ResourceDropsCause> mCause;
24 ::ll::TypedStorage<4, 4, float> mExplosionRadius;
25 ::ll::TypedStorage<8, 8, ::ItemStack const&> mUsedItem;
26 ::ll::TypedStorage<4, 12, ::BlockPos const> mBlockPos;
27 ::ll::TypedStorage<4, 4, ::DimensionType const> mDimensionType;
28 ::ll::TypedStorage<8, 8, ::IBlockSource const&> mBlockSource;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI ::BlockActor const* getBlockActor() const;
35
36 MCAPI ::ILevel& getLevel() const;
37
38 MCAPI int getMiningLootBonusLevel() const;
39
40 MCAPI ::Random& getRandom() const;
41
42 MCAPI bool isUsingSilkTouch() const;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static ::ResourceDropsContext
49 fromExplosion(::IBlockSource const& region, float explosionRadius, ::BlockPos const& position);
50
51 MCAPI static ::ResourceDropsContext
52 fromLootResolver(::IBlockSource const& region, ::BlockPos const& position, ::ItemStack const& usedItem);
53
54 MCAPI static ::ResourceDropsContext fromOtherCause(::IBlockSource const& region, ::BlockPos const& position);
55
56 MCAPI static ::ResourceDropsContext
57 fromPlayerMining(::IBlockSource const& region, ::BlockPos const& position, ::ItemStack const& usedItem);
58
59 MCAPI static ::ResourceDropsContext fromProjectileHit(::IBlockSource const& region, ::BlockPos const& position);
60 // NOLINTEND
61};
Definition BlockActor.h:30
Definition BlockPos.h:21
Definition IBlockSource.h:38
Definition ILevel.h:219
Definition ItemStack.h:35
Definition Random.h:10
Definition ResourceDropsContext.h:19