mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-16 15:45:21 +01:00
chore: expose previous position with a getter (#2046)
This commit is contained in:
parent
c27ab180a5
commit
115f9c1355
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user