LeviLamina
Loading...
Searching...
No Matches
ExplodeComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelEvent.h"
7#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class CompoundTag;
13class DataLoadHelper;
14class Vec3;
15// clang-format on
16
17class ExplodeComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mFuseLength;
22 ::ll::TypedStorage<4, 4, int> mInitialFuseLength;
23 ::ll::TypedStorage<4, 4, float> mExplosionPower;
24 ::ll::TypedStorage<4, 4, float> mMaxResistance;
25 ::ll::TypedStorage<1, 1, bool> mIsFuseLit;
26 ::ll::TypedStorage<1, 1, bool> mCausesFire;
27 ::ll::TypedStorage<4, 4, float> mDamageScaling;
28 ::ll::TypedStorage<1, 1, bool> mBreaksBlocks;
29 ::ll::TypedStorage<1, 1, bool> mTogglesBlocks;
30 ::ll::TypedStorage<1, 1, bool> mFireAffectedByGriefing;
31 ::ll::TypedStorage<1, 1, bool> mDestroyAffectedByGriefing;
32 ::ll::TypedStorage<1, 1, bool> mAllowUnderwater;
33 ::ll::TypedStorage<1, 1, bool> mRequiresTntExplodeGameRuleEnabled;
34 ::ll::TypedStorage<4, 4, float> mKnockbackScaling;
35 ::ll::TypedStorage<2, 2, ::SharedTypes::Legacy::LevelEvent> mParticleType;
36 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEffect;
37 ::ll::TypedStorage<1, 1, bool> mNegatesFallDamage;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI ExplodeComponent();
44
45 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
46
47 MCAPI void explode(::Actor& actor, ::Vec3 const& explosionPosition);
48
49 MCFOLD int getFuseLength() const;
50
51 MCFOLD int getInitialFuseLength() const;
52
53 MCFOLD bool getIsFuseLit() const;
54
55 MCFOLD bool getNegatesFallDamage() const;
56
57 MCFOLD bool isFuseLit() const;
58
59 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
60
61 MCFOLD bool requiresTntExplodeGameRuleEnabled() const;
62
63 MCFOLD void setAllowUnderwater(bool allow);
64
65 MCFOLD void setFuseLength(int fuseLength);
66
67 MCAPI void setTntExpodeGameRuleRequired();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor();
74 // NOLINTEND
75};
Definition Actor.h:125
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition Vec3.h:10