Package noppes.npcs.api
Interface IDamageSource
-
public interface IDamageSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEntity
getImmediateSource()
net.minecraft.util.DamageSource
getMCDamageSource()
IEntity
getTrueSource()
java.lang.String
getType()
boolean
isProjectile()
boolean
isUnblockable()
-
-
-
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.
-
-