Interface IDamageSource


  • public interface IDamageSource
    • Method Detail

      • getType

        java.lang.String getType()
        Returns:
        The damage type of the damage source as a string. Ex: "lava", "explosion", "magic", "outOfWorld", etc.
      • isUnblockable

        boolean isUnblockable()
      • isProjectile

        boolean isProjectile()
      • getTrueSource

        IEntity getTrueSource()
        Returns:
        The entity source of where the damage source originated. If a player was shot by an arrow from a skeleton, this would return an IEntity object of the skeleton.
      • getImmediateSource

        IEntity getImmediateSource()
        Returns:
        The entity source of where the damage source originated. If a player was shot by an arrow from a skeleton, this would return an IEntity object of the arrow.
      • getMCDamageSource

        net.minecraft.util.DamageSource getMCDamageSource()
        Returns:
        An obfuscated MC damage source object.