diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index dfec7afbb..870388209 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -625,6 +625,15 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer { this.boundingBox = new BoundingBox(this, x, y, z); } + /** + * Convenience method to get the entity current chunk + * + * @return the entity chunk + */ + public Chunk getChunk() { + return instance.getChunkAt(lastX, lastZ); + } + /** * Get the entity current instance *