public class DamageSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DamageSource |
anvil |
static DamageSource |
cactus |
java.lang.String |
damageType |
static DamageSource |
dragonBreath |
static DamageSource |
drown |
static DamageSource |
fall |
static DamageSource |
fallingBlock |
static DamageSource |
flyIntoWall |
static DamageSource |
generic |
static DamageSource |
inFire |
static DamageSource |
inWall |
static DamageSource |
lava |
static DamageSource |
lightningBolt |
static DamageSource |
magic |
static DamageSource |
onFire |
static DamageSource |
outOfWorld |
static DamageSource |
starve |
static DamageSource |
wither |
Constructor and Description |
---|
DamageSource(java.lang.String damageTypeIn) |
public static DamageSource inFire
public static DamageSource lightningBolt
public static DamageSource onFire
public static DamageSource lava
public static DamageSource inWall
public static DamageSource drown
public static DamageSource starve
public static DamageSource cactus
public static DamageSource fall
public static DamageSource flyIntoWall
public static DamageSource outOfWorld
public static DamageSource generic
public static DamageSource magic
public static DamageSource wither
public static DamageSource anvil
public static DamageSource fallingBlock
public static DamageSource dragonBreath
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 getSourceOfDamage()
@Nullable public Entity getEntity()
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()