chore: expose previous position with a getter (#2046)

This commit is contained in:
DeidaraMC 2024-03-25 19:52:26 -04:00 committed by GitHub
parent c27ab180a5
commit 115f9c1355
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
* <p>