2021-09-30 21:44:30 -05:00
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
2021-10-18 06:33:39 -05:00
package noppes.npcs.scripted.interfaces ;
2021-09-30 21:44:30 -05:00
import net.minecraft.util.DamageSource ;
2022-05-11 16:43:14 -05:00
import noppes.npcs.scripted.interfaces.entity.IEntity ;
2021-09-30 21:44:30 -05:00
public interface IDamageSource {
2022-05-17 05:24:57 -05:00
/**
*
* @return Returns the damage type of the damage source as a string. Ex: "lava", "explosion", "magic", "outOfWorld", etc.
*/
2021-09-30 21:44:30 -05:00
String getType ();
2022-05-11 16:31:14 -05:00
boolean isUnblockable ();
2021-09-30 21:44:30 -05:00
boolean isProjectile ();
2022-05-17 05:24:57 -05:00
/**
*
* @return 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.
*/
2021-09-30 21:44:30 -05:00
IEntity getTrueSource ();
2022-05-17 05:24:57 -05:00
/**
*
* @return 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.
*/
2021-09-30 21:44:30 -05:00
IEntity getImmediateSource ();
2022-05-17 05:24:57 -05:00
/**
*
* @return Returns a non-script, obfuscated MC damage source object.
*/
2021-09-30 21:44:30 -05:00
DamageSource getMCDamageSource ();
}