Class ExtendedDamageSource

java.lang.Object
net.minecraft.world.damagesource.DamageSource
org.cyclops.evilcraft.ExtendedDamageSource
Direct Known Subclasses:
ExtendedDamageSource.VengeanceBeamDamageSource

public class ExtendedDamageSource extends net.minecraft.world.damagesource.DamageSource
An extension of the Minecraft DamageSource.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    DamageSource for when entities die without any apparent reason.
    DamageSource for when entities die from distortion not caused by another player.
    DamageSource for when necromancer's entities that are automatically killed.
    DamageSource for paling entities.

    Fields inherited from class net.minecraft.world.damagesource.DamageSource

    CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRY_OUT, FALL, FLY_INTO_WALL, FREEZE, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, msgId, ON_FIRE, OUT_OF_WORLD, STALAGMITE, STARVE, SWEET_BERRY_BUSH, WITHER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExtendedDamageSource(String unlocalizedName)
     
    protected
    ExtendedDamageSource(String unlocalizedName, net.minecraft.world.entity.Entity entity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    broomDamage(net.minecraft.world.entity.LivingEntity attacker)
     
    net.minecraft.world.entity.Entity
     
    Get the string identifier of this damage source.
    spikedDamage(net.minecraft.server.level.ServerLevel world)
    DamageSource for when entities die from a spiked plate.
    vengeanceBeam(net.minecraft.world.entity.LivingEntity attacker)
     

    Methods inherited from class net.minecraft.world.damagesource.DamageSource

    anvil, arrow, badRespawnPointExplosion, bypassArmor, bypassEnchantments, bypassInvul, bypassMagic, damageHelmet, explosion, explosion, fallingBlock, fallingStalactite, fireball, fireworks, getDirectEntity, getFoodExhaustion, getLocalizedDeathMessage, getMsgId, getSourcePosition, indirectMagic, indirectMobAttack, isBypassArmor, isBypassEnchantments, isBypassInvul, isBypassMagic, isCreativePlayer, isDamageHelmet, isExplosion, isFall, isFire, isMagic, isNoAggro, isProjectile, mobAttack, playerAttack, scalesWithDifficulty, setExplosion, setIsFall, setIsFire, setMagic, setNoAggro, setProjectile, setScalesWithDifficulty, sonicBoom, sting, thorns, thrown, toString, trident, witherSkull

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • dieWithoutAnyReason

      public static ExtendedDamageSource dieWithoutAnyReason
      DamageSource for when entities die without any apparent reason.
    • distorted

      public static ExtendedDamageSource distorted
      DamageSource for when entities die from distortion not caused by another player.
    • necromancerRecall

      public static ExtendedDamageSource necromancerRecall
      DamageSource for when necromancer's entities that are automatically killed.
    • paling

      public static ExtendedDamageSource paling
      DamageSource for paling entities.
  • Constructor Details

    • ExtendedDamageSource

      protected ExtendedDamageSource(String unlocalizedName, net.minecraft.world.entity.Entity entity)
    • ExtendedDamageSource

      protected ExtendedDamageSource(String unlocalizedName)
  • Method Details

    • spikedDamage

      public static ExtendedDamageSource spikedDamage(net.minecraft.server.level.ServerLevel world)
      DamageSource for when entities die from a spiked plate.
      Parameters:
      world - The world.
      Returns:
      A new damage source instance.
    • broomDamage

      public static ExtendedDamageSource broomDamage(net.minecraft.world.entity.LivingEntity attacker)
    • vengeanceBeam

      public static ExtendedDamageSource vengeanceBeam(net.minecraft.world.entity.LivingEntity attacker)
    • getID

      public String getID()
      Get the string identifier of this damage source.
      Returns:
      The unique ID.
    • getEntity

      public net.minecraft.world.entity.Entity getEntity()
      Overrides:
      getEntity in class net.minecraft.world.damagesource.DamageSource