17class ExplodeComponent {
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;
43 MCAPI ExplodeComponent();
47 MCAPI
void explode(
::Actor& actor,
::Vec3 const& explosionPosition);
49 MCFOLD
int getFuseLength()
const;
51 MCFOLD
int getInitialFuseLength()
const;
53 MCFOLD
bool getIsFuseLit()
const;
55 MCFOLD
bool getNegatesFallDamage()
const;
57 MCFOLD
bool isFuseLit()
const;
61 MCFOLD
bool requiresTntExplodeGameRuleEnabled()
const;
63 MCFOLD
void setAllowUnderwater(
bool allow);
65 MCFOLD
void setFuseLength(
int fuseLength);
67 MCAPI
void setTntExpodeGameRuleRequired();