mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 11:54:47 +00:00
Animation/Frame Data Classes with a EnumAnimationPart
This commit is contained in:
1 parent
54d53041ac
commit
91bcd43942
4 files changed
+229
No files matched your search
@@ -0,0 +1,48 @@
|
||||
package noppes.npcs.controllers.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
public class Animation {
|
||||
|
||||
public ArrayList<Frame> frames = new ArrayList<Frame>();
|
||||
public int id = 0;
|
||||
public String name;
|
||||
public float speed = 1.0F;
|
||||
public boolean smooth = false;
|
||||
|
||||
public Animation(ArrayList<Frame> parts, String name){
|
||||
this.frames = parts;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Animation(ArrayList<Frame> parts, String name, float speed, boolean smooth){
|
||||
this.frames = parts;
|
||||
this.name = name;
|
||||
this.speed = speed;
|
||||
this.smooth = smooth;
|
||||
}
|
||||
|
||||
public ArrayList<Frame> getFrames() {
|
||||
return frames;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public float getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public boolean isSmooth() {
|
||||
return smooth;
|
||||
}
|
||||
|
||||
// MAKE WRITE NBT
|
||||
// MAKE READ NBT
|
||||
}
|
||||
Reference in new issue
Block a user