mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 18:59:49 +00:00
IModelData:
-Implemented hidePart() abd hidden() functions
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user