public class DamageSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DamageSource |
ANVIL |
static DamageSource |
CACTUS |
static DamageSource |
CRAMMING |
private boolean |
damageIsAbsolute |
java.lang.String |
damageType |
private boolean |
difficultyScaled |
static DamageSource |
DRAGON_BREATH |
static DamageSource |
DROWN |
private boolean |
explosion |
static DamageSource |
FALL |
static DamageSource |
FALLING_BLOCK |
private boolean |
fireDamage |
static DamageSource |
FIREWORKS |
static DamageSource |
FLY_INTO_WALL |
static DamageSource |
GENERIC |
static DamageSource |
HOT_FLOOR |
private float |
hungerDamage |
static DamageSource |
IN_FIRE |
static DamageSource |
IN_WALL |
private boolean |
isDamageAllowedInCreativeMode |
private boolean |
isUnblockable |
static DamageSource |
LAVA |
static DamageSource |
LIGHTNING_BOLT |
static DamageSource |
MAGIC |
private boolean |
magicDamage |
static DamageSource |
ON_FIRE |
static DamageSource |
OUT_OF_WORLD |
private boolean |
projectile |
static DamageSource |
STARVE |
static DamageSource |
WITHER |
Constructor and Description |
---|
DamageSource(java.lang.String damageTypeIn) |
public static final DamageSource IN_FIRE
public static final DamageSource LIGHTNING_BOLT
public static final DamageSource ON_FIRE
public static final DamageSource LAVA
public static final DamageSource HOT_FLOOR
public static final DamageSource IN_WALL
public static final DamageSource CRAMMING
public static final DamageSource DROWN
public static final DamageSource STARVE
public static final DamageSource CACTUS
public static final DamageSource FALL
public static final DamageSource FLY_INTO_WALL
public static final DamageSource OUT_OF_WORLD
public static final DamageSource GENERIC
public static final DamageSource MAGIC
public static final DamageSource WITHER
public static final DamageSource ANVIL
public static final DamageSource FALLING_BLOCK
public static final DamageSource DRAGON_BREATH
public static final DamageSource FIREWORKS
private boolean isUnblockable
private boolean isDamageAllowedInCreativeMode
private boolean damageIsAbsolute
private float hungerDamage
private boolean fireDamage
private boolean projectile
private boolean difficultyScaled
private boolean magicDamage
private boolean explosion
public java.lang.String damageType
public static DamageSource causeMobDamage(EntityLivingBase mob)
public static DamageSource causeIndirectDamage(Entity source, EntityLivingBase indirectEntityIn)
public static DamageSource causePlayerDamage(EntityPlayer player)
public static DamageSource causeArrowDamage(EntityArrow arrow, @Nullable Entity indirectEntityIn)
public static DamageSource causeFireballDamage(EntityFireball fireball, @Nullable Entity indirectEntityIn)
public static DamageSource causeThrownDamage(Entity source, @Nullable Entity indirectEntityIn)
public static DamageSource causeIndirectMagicDamage(Entity source, @Nullable Entity indirectEntityIn)
public static DamageSource causeThornsDamage(Entity source)
public static DamageSource causeExplosionDamage(@Nullable Explosion explosionIn)
public static DamageSource causeExplosionDamage(@Nullable EntityLivingBase entityLivingBaseIn)
public boolean isProjectile()
public DamageSource setProjectile()
public boolean isExplosion()
public DamageSource setExplosion()
public boolean isUnblockable()
public float getHungerDamage()
public boolean canHarmInCreative()
public boolean isDamageAbsolute()
@Nullable public Entity getImmediateSource()
@Nullable public Entity getTrueSource()
public DamageSource setDamageBypassesArmor()
public DamageSource setDamageAllowedInCreativeMode()
public DamageSource setDamageIsAbsolute()
public DamageSource setFireDamage()
public ITextComponent getDeathMessage(EntityLivingBase entityLivingBaseIn)
public boolean isFireDamage()
public java.lang.String getDamageType()
public DamageSource setDifficultyScaled()
public boolean isDifficultyScaled()
public boolean isMagicDamage()
public DamageSource setMagicDamage()
public boolean isCreativePlayer()
@Nullable public Vec3d getDamageLocation()