mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +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
@@ -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