mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 16:09:11 +00:00
More fixes to global NPC scripts not executing on servers, and added more functions to IEntityLivingBase.
This commit is contained in:
1 parent
5562e3b82d
commit
f481602612
2 files changed
+26
-6
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.api.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import noppes.npcs.api.IBlock;
|
||||
import noppes.npcs.api.IDamageSource;
|
||||
import noppes.npcs.api.IPos;
|
||||
@@ -27,6 +28,25 @@ public interface IEntityLivingBase<T extends EntityLivingBase> extends IEntity<T
|
||||
* @return Entity's max health
|
||||
*/
|
||||
double getMaxHealth();
|
||||
|
||||
double getFollowRange();
|
||||
|
||||
double getKnockbackResistance();
|
||||
|
||||
double getSpeed();
|
||||
|
||||
double getMeleeStrength();
|
||||
|
||||
void setMaxHealth(double health);
|
||||
|
||||
void setFollowRange(double range);
|
||||
|
||||
void setKnockbackResistance(double knockbackResistance);
|
||||
|
||||
void setSpeed(double speed);
|
||||
|
||||
void setMeleeStrength(double attackDamage);
|
||||
|
||||
/**
|
||||
* @return Whether or not this entity is attacking something
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user