mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-15 19:34:49 +00:00
Removed animation IDs, added animation controller.
This commit is contained in:
1 parent
6a7ce1bb5b
commit
0787a71197
4 files changed
+44
-46
No files matched your search
@@ -164,6 +164,11 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
return TransportController.getInstance();
|
||||
}
|
||||
|
||||
public IAnimationHandler getAnimations() {
|
||||
this.checkWorld();
|
||||
return AnimationController.instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getAllBiomeNames() {
|
||||
List<String> biomes = new ArrayList<>();
|
||||
@@ -567,12 +572,12 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
return this.millisToTime(ticks * 50);
|
||||
}
|
||||
|
||||
public IAnimation createAnimation(int id, String name) {
|
||||
return new Animation(id, name);
|
||||
public IAnimation createAnimation(String name) {
|
||||
return new Animation(name);
|
||||
}
|
||||
|
||||
public IAnimation createAnimation(int id, String name, float speed, byte smooth) {
|
||||
return new Animation(id, name, speed, smooth);
|
||||
public IAnimation createAnimation(String name, float speed, byte smooth) {
|
||||
return new Animation(name, speed, smooth);
|
||||
}
|
||||
|
||||
public IFrame createFrame(int duration) {
|
||||
|
||||
Reference in new issue
Block a user