LeviLamina
Loading...
Searching...
No Matches
Explosion.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/shared_types/legacy/LevelEvent.h"
8#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/world/level/BlockPos.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class Block;
16class BlockSource;
17class ItemStack;
18class Randomize;
20// clang-format on
21
22class Explosion {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
27 ::ll::TypedStorage<4, 4, float> mRadius;
28 ::ll::TypedStorage<8, 64, ::std::unordered_set<::BlockPos>> mAffectedBlocks;
29 ::ll::TypedStorage<1, 1, bool> mFire;
30 ::ll::TypedStorage<1, 1, bool> mBreaking;
31 ::ll::TypedStorage<1, 1, bool> mAllowUnderwater;
32 ::ll::TypedStorage<1, 1, bool> mCanToggleBlocks;
33 ::ll::TypedStorage<4, 4, float> mDamageScaling;
34 ::ll::TypedStorage<1, 1, bool> mIgnoreBlockExplosionResistance;
35 ::ll::TypedStorage<2, 2, ::SharedTypes::Legacy::LevelEvent> mParticleType;
36 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundExplosionType;
37 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mSourceID;
38 ::ll::TypedStorage<8, 8, ::BlockSource&> mRegion;
39 ::ll::TypedStorage<4, 4, float> mMaxResistance;
40 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mInWaterOverride;
41 ::ll::TypedStorage<4, 8, ::std::optional<int>> mTotalDamageOverride;
42 ::ll::TypedStorage<4, 4, float> mKnockbackScaling;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 Explosion& operator=(Explosion const&);
48 Explosion(Explosion const&);
49 Explosion();
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI ::std::vector<::gsl::not_null<::Actor*>> _getActorsInRange(::Actor* optSource, float range) const;
55
56 MCAPI bool explode();
57
58 MCAPI ::Vec3 getEyePos(::Actor& actor) const;
59
60 MCAPI ~Explosion();
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static void _addOrMergeItemStack(
67 ::ItemStack const& newItemStack,
68 ::BlockPos pos,
69 ::std::vector<::std::pair<::ItemStack, ::BlockPos>>& itemStacks
70 );
71
72 MCAPI static void _spawnExtraResourcesAndMergeItemDropsForBlock(
73 ::BlockSource& region,
74 ::BlockPos const& blockPos,
75 ::Block const& block,
76 ::Randomize& randomize,
77 ::ResourceDropsContext const& resourceDropsContext,
78 ::std::vector<::std::pair<::ItemStack, ::BlockPos>>& itemStacks
79 );
80 // NOLINTEND
81
82public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCFOLD void $dtor();
86 // NOLINTEND
87};
Definition Actor.h:103
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Explosion.h:22
Definition ItemStack.h:25
Definition Randomize.h:13
Definition ResourceDropsContext.h:12