diff options
author | Mattes D <github@xoft.cz> | 2015-12-16 15:04:47 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-12-18 12:40:34 +0100 |
commit | 086c8b1834bfca6a4af912abbd13fd570f7b0b33 (patch) | |
tree | 7e95f9e8102c3cc7910c7a513e4cc77bce764aed /src/BlockID.h | |
parent | Merge pull request #2770 from cuberite/RemoveChunkDataCollector (diff) | |
download | cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.gz cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.bz2 cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.lz cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.xz cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.zst cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockID.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/BlockID.h b/src/BlockID.h index 98c296249..1a43d4b64 100644 --- a/src/BlockID.h +++ b/src/BlockID.h @@ -1051,18 +1051,30 @@ enum eDamageType +/** The source of an explosion. +Also dictates the type of the additional data passed to the explosion handlers: +| esBed | Vector3i * | Bed exploding in the Nether or in the End +| esEnderCrystal | cEnderCrystal * | +| esGhastFireball | cGhastFireballEntity * | +| esMonster | cMonster * | +| esOther | nullptr | Any other explosion unaccounted for +| esPlugin | nullptr | Explosion primarily attributed to a plugin +| esPrimedTNT | cTNTEntity * | +| esWitherBirth | cMonster * | +| esWitherSkull | cProjectileEntity * | +*/ enum eExplosionSource { - esOther, - esPrimedTNT, - esMonster, esBed, esEnderCrystal, esGhastFireball, - esWitherSkullBlack, - esWitherSkullBlue, - esWitherBirth, + esMonster, + esOther, esPlugin, + esPrimedTNT, + esWitherBirth, + esWitherSkull, + esMax, } ; |