mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 21:59:05 +00:00
Added setHurtTime function to IEntityLivingBase
This commit is contained in:
1 parent
9df3db48ce
commit
bdf3791e38
1 file changed
+6
@@ -374,4 +374,10 @@ public class ScriptLivingBase<T extends EntityLivingBase> extends ScriptEntity<T
|
||||
public float getAbsorptionAmount() {
|
||||
return this.entity.getAbsorptionAmount();
|
||||
}
|
||||
|
||||
|
||||
public void setHurtTime(int time) {
|
||||
this.entity.hurtResistantTime = time;
|
||||
this.entity.hurtTime = time;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user