Add a direct way to set the bounding box in Entity

This commit is contained in:
KrystilizeNevaDies 2021-01-13 21:57:55 +10:00
parent 098ba1a6a4
commit 7bc1f37e80

View File

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