Add support for entity instant animations
This commit is contained in:
@@ -34,4 +34,6 @@ public interface Entity extends Movable, Animated, Renderable, Updatable {
|
||||
int getZIndex();
|
||||
|
||||
void setZIndex(int zIndex);
|
||||
|
||||
void performInstantAnimation(Direction targetFaceDirection, Runnable onFinish);
|
||||
}
|
||||
|
||||
@@ -265,6 +265,11 @@ public abstract class EntityDelegate implements Entity {
|
||||
entity.setZIndex(zIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void performInstantAnimation(Direction targetFaceDirection, Runnable onFinish) {
|
||||
entity.performInstantAnimation(targetFaceDirection, onFinish);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean move(Movement movement) {
|
||||
return entity.move(movement);
|
||||
|
||||
Reference in New Issue
Block a user