mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Get HP
This commit is contained in:
1 parent
da313f6d0a
commit
b932793814
1 file changed
+9
@@ -374,6 +374,15 @@ public class ScriptDBCPlayer<T extends EntityPlayerMP> extends ScriptPlayer<T> i
|
||||
return player.getEntityData().getCompoundTag("PlayerPersisted").getInteger("jrmcBdy");
|
||||
}
|
||||
|
||||
public void setHP(int hp){
|
||||
setBody(hp);
|
||||
}
|
||||
public int getHP()
|
||||
{
|
||||
return getBody();
|
||||
}
|
||||
|
||||
|
||||
public void setStamina(int stamina){
|
||||
player.getEntityData().getCompoundTag("PlayerPersisted").setInteger("jrmcStamina",stamina);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user