mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 00:35:06 +00:00
IEntityLivingBase:
-Added functions to change maxHurtResistanceTime
This commit is contained in:
1 parent
3a6255d98f
commit
b21e79b5bb
2 files changed
+9
-1
No files matched your search
+1
-1
Submodule src/api updated: 509f3b871f...9571c852f6.
@@ -58,6 +58,14 @@ public class ScriptLivingBase<T extends EntityLivingBase> extends ScriptEntity<T
|
||||
entity.attackEntityFrom(damageSource.getMCDamageSource(),damage);
|
||||
}
|
||||
|
||||
public void setMaxHurtTime(int time) {
|
||||
entity.maxHurtResistantTime = time;
|
||||
}
|
||||
|
||||
public int setMaxHurtTime() {
|
||||
return entity.maxHurtResistantTime;
|
||||
}
|
||||
|
||||
public double getMaxHealth(){
|
||||
return entity.getEntityAttribute(SharedMonsterAttributes.maxHealth).getAttributeValue();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user