Class DamageSource

  • Direct Known Subclasses:
    EntityDamageSource

    public class DamageSource
    extends java.lang.Object
    • Constructor Detail

      • DamageSource

        protected DamageSource​(java.lang.String var1)
    • Method Detail

      • isProjectile

        public boolean isProjectile()
      • isUnblockable

        public boolean isUnblockable()
      • getHungerDamage

        public float getHungerDamage()
      • canHarmInCreative

        public boolean canHarmInCreative()
      • getSourceOfDamage

        public Entity getSourceOfDamage()
      • getEntity

        public Entity getEntity()
      • setDamageBypassesArmor

        protected DamageSource setDamageBypassesArmor()
      • setDamageAllowedInCreativeMode

        protected DamageSource setDamageAllowedInCreativeMode()
      • getDeathMessage

        public java.lang.String getDeathMessage​(Player var1)
      • fireDamage

        public boolean fireDamage()
      • getDamageType

        public java.lang.String getDamageType()