Add CNPC+ Api

This commit is contained in:
KAMKEEL committed 2022-11-25 00:57:24 -05:00
1 parent 0c4db676e4
commit 95e2f9df01
109 files changed
+7308

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package noppes.npcs.api;
import net.minecraft.util.DamageSource;
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();
boolean isUnblockable();
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();
}