mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Added getSpeed() and setSpeed(speed) functions to ScriptNpc
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user