mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-21 03:01:05 +02: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;
|
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.
|
* Gets the entity eye height.
|
||||||
* <p>
|
* <p>
|
||||||
|
Loading…
Reference in New Issue
Block a user