Package org.cyclops.evilcraft
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ExtendedDamageSourceDamageSource for when entities die without any apparent reason.static ExtendedDamageSourceDamageSource for when entities die from distortion not caused by another player.static ExtendedDamageSourceDamageSource for when necromancer's entities that are automatically killed.static ExtendedDamageSourceDamageSource for paling entities.Fields inherited from class net.minecraft.world.damagesource.DamageSource
ANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRY_OUT, FALL, FALLING_BLOCK, FALLING_STALACTITE, 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
ConstructorsModifierConstructorDescriptionprotectedExtendedDamageSource(String unlocalizedName) protectedExtendedDamageSource(String unlocalizedName, net.minecraft.world.entity.Entity entity) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedDamageSourcebroomDamage(net.minecraft.world.entity.LivingEntity attacker) net.minecraft.world.entity.EntitygetID()Get the string identifier of this damage source.static ExtendedDamageSourcespikedDamage(net.minecraft.server.level.ServerLevel world) DamageSource for when entities die from a spiked plate.static ExtendedDamageSourcevengeanceBeam(net.minecraft.world.entity.LivingEntity attacker) Methods inherited from class net.minecraft.world.damagesource.DamageSource
arrow, badRespawnPointExplosion, bypassArmor, bypassInvul, bypassMagic, damageHelmet, explosion, explosion, fireball, fireworks, getDirectEntity, getFoodExhaustion, getLocalizedDeathMessage, getMsgId, getSourcePosition, indirectMagic, indirectMobAttack, isBypassArmor, isBypassInvul, isBypassMagic, isCreativePlayer, isDamageHelmet, isExplosion, isFall, isFire, isMagic, isNoAggro, isProjectile, mobAttack, playerAttack, scalesWithDifficulty, setExplosion, setIsFall, setIsFire, setMagic, setNoAggro, setProjectile, setScalesWithDifficulty, sting, thorns, thrown, toString, trident, witherSkull
-
Field Details
-
dieWithoutAnyReason
DamageSource for when entities die without any apparent reason. -
distorted
DamageSource for when entities die from distortion not caused by another player. -
necromancerRecall
DamageSource for when necromancer's entities that are automatically killed. -
paling
DamageSource for paling entities.
-
-
Constructor Details
-
ExtendedDamageSource
-
ExtendedDamageSource
-
-
Method Details
-
spikedDamage
DamageSource for when entities die from a spiked plate.- Parameters:
world- The world.- Returns:
- A new damage source instance.
-
broomDamage
-
vengeanceBeam
-
getID
Get the string identifier of this damage source.- Returns:
- The unique ID.
-
getEntity
public net.minecraft.world.entity.Entity getEntity()- Overrides:
getEntityin classnet.minecraft.world.damagesource.DamageSource
-