[SPIGOT-2151] Methods to retrieve the exact bounding boxes of entity and block types Created: 08/Apr/16  Updated: 18/Dec/18  Resolved: 18/Dec/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: blablubbabc Assignee: Unassigned
Resolution: Fixed Votes: 7
Labels: None


 Description   

For entities: Entity#getBoundingBox(), and/or EntityType#getBoundingBox() (returning basically the default bounding box for a certain entity type, and wouldn't require an entity instance then)
For block types: Material#getBoundingBox(), or a static Material#getBoundingBox(Material blockType) (returning null for non-block materials)



 Comments   
Comment by blablubbabc [ 26/Oct/18 ]

This can probably be closed now.

While its still not possible to get bounding boxes for an entity type, or block bounding boxes / collision shapes, it is now possible to get the bounding box of an entity and one can perform ray traces with the precise block collision boxes, and one can determine whether a block is passable or not.

So at least the most common usecases should be covered now. Still not that easily possible is to simulate minecraft's entity motion block-collision checking, but one can probably create another ticket if the need for that (or other not-yet-covered very specific usecases) arises.

 

Generated at Tue Apr 22 05:09:36 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.