mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-27 14:13:24 +02:00
Add a direct way to set the bounding box in Entity
This commit is contained in:
parent
098ba1a6a4
commit
7bc1f37e80
@ -717,6 +717,17 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer, P
|
||||
public void setBoundingBox(float x, float y, float z) {
|
||||
this.boundingBox = new BoundingBox(this, x, y, z);
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes the internal entity bounding box.
|
||||
* <p>
|
||||
* WARNING: this does not change the entity hit-box which is client-side.
|
||||
*
|
||||
* @param boundingBox the new bounding box
|
||||
*/
|
||||
public void setBoundingBox(BoundingBox boundingBox) {
|
||||
this.boundingBox = boundingBox;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenient method to get the entity current chunk.
|
||||
|
Loading…
Reference in New Issue
Block a user