IModelData:

-Implemented hidePart() abd hidden() functions
This commit is contained in:
Luis C.M committed 2023-03-17 02:59:33 -05:00
1 parent 9a77e2f146
commit 6913cadc79
12 files changed
+101 -47

No files matched your search

@@ -184,7 +184,7 @@ public class ScriptPixelmon<T extends EntityTameable> extends ScriptAnimal<T> im
* @param value 0-255
*/
public void setHapiness(int value){
value = ValueUtil.CorrectInt(value, 0, 255);
value = ValueUtil.clamp(value, 0, 255);
compound.setInteger("Friendship", value);
pixelmon.readEntityFromNBT(compound);
}
@@ -241,7 +241,7 @@ public class ScriptPixelmon<T extends EntityTameable> extends ScriptAnimal<T> im
}
public void setMove(int slot, String move){
slot = ValueUtil.CorrectInt(slot, 0, 3);
slot = ValueUtil.clamp(slot, 0, 3);
int id = PixelmonHelper.getAttackID(move);
compound.removeTag("PixelmonMovePP" + slot);
compound.removeTag("PixelmonMovePPBase" + slot);