diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index 7382466cf..b4245ad7a 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -1478,6 +1478,15 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev return position; } + /** + * Gets the previous entity position. + * + * @return the previous position of the entity + */ + public @NotNull Pos getPreviousPosition() { + return previousPosition; + } + /** * Gets the entity eye height. *