Refactor EntityInstantAnimation

This commit is contained in:
2021-04-01 12:42:18 +02:00
parent 83f257708f
commit 143d7fd4a2
5 changed files with 11 additions and 19 deletions

View File

@@ -35,7 +35,5 @@ public interface Entity extends Movable, Animated, Renderable, Updatable {
void setZIndex(int zIndex);
void performInstantAnimation(Direction targetFaceDirection);
void performInstantAnimation(Direction targetFaceDirection, Runnable onFinish);
}

View File

@@ -265,11 +265,6 @@ public abstract class EntityDelegate implements Entity {
entity.setZIndex(zIndex);
}
@Override
public void performInstantAnimation(Direction targetFaceDirection) {
entity.performInstantAnimation(targetFaceDirection);
}
@Override
public void performInstantAnimation(Direction targetFaceDirection, Runnable onFinish) {
entity.performInstantAnimation(targetFaceDirection, onFinish);