Added getSpeed() and setSpeed(speed) functions to ScriptNpc

This commit is contained in:
luisc committed 2021-12-12 23:10:55 -06:00
1 parent ba0f21dc26
commit eac3d2c214
3 files changed
+13 -1

No files matched your search

@@ -967,6 +967,14 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
return npc.ai.flyGravity;
}
public void setSpeed(int speed) {
npc.ai.setWalkingSpeed(speed);
}
public int getSpeed() {
return npc.ai.getWalkingSpeed();
}
public void setSkinType(byte type) {
npc.display.skinType = type;
npc.updateClient = true;