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 |
static DamageSource |
DRYOUT |
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 |
SWEET_BERRY_BUSH |
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 static final DamageSource DRYOUT
public static final DamageSource SWEET_BERRY_BUSH
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 final java.lang.String damageType
public static DamageSource func_226252_a_(LivingEntity p_226252_0_)
public static DamageSource causeMobDamage(LivingEntity mob)
public static DamageSource causeIndirectDamage(Entity source, LivingEntity indirectEntityIn)
public static DamageSource causePlayerDamage(PlayerEntity player)
public static DamageSource causeArrowDamage(AbstractArrowEntity arrow, @Nullable Entity indirectEntityIn)
public static DamageSource causeTridentDamage(Entity source, @Nullable Entity indirectEntityIn)
public static DamageSource causeFireballDamage(DamagingProjectileEntity 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 LivingEntity entityLivingBaseIn)
public static DamageSource netherBedExplosion()
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(LivingEntity 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()