This commit is contained in:
Kam committed 2025-03-13 15:36:30 -04:00
1 parent c81e848895
commit c7a74a3e0e
59 files changed
+506 -592

No files matched your search

+4
View File
@@ -5,6 +5,7 @@ import noppes.npcs.api.entity.IEntity;
public interface IDamageSource {
/**
*
* @return The damage type of the damage source as a string. Ex: "lava", "explosion", "magic", "outOfWorld", etc.
*/
String getType();
@@ -14,16 +15,19 @@ public interface IDamageSource {
boolean isProjectile();
/**
*
* @return 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.
*/
IEntity getTrueSource();
/**
*
* @return 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.
*/
IEntity getImmediateSource();
/**
*
* @return An obfuscated MC damage source object.
*/
DamageSource getMCDamageSource();