public class DamageSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DamageSource |
ANVIL |
static DamageSource |
CACTUS |
static DamageSource |
CRAMMING |
java.lang.String |
damageType |
static DamageSource |
DRAGON_BREATH |
static DamageSource |
DROWN |
static DamageSource |
FALL |
static DamageSource |
FALLING_BLOCK |
static DamageSource |
FIREWORKS |
static DamageSource |
FLY_INTO_WALL |
static DamageSource |
GENERIC |
static DamageSource |
HOT_FLOOR |
static DamageSource |
IN_FIRE |
static DamageSource |
IN_WALL |
static DamageSource |
LAVA |
static DamageSource |
LIGHTNING_BOLT |
static DamageSource |
MAGIC |
static DamageSource |
ON_FIRE |
static DamageSource |
OUT_OF_WORLD |
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
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()