public class GetCollisionBoxesEvent extends WorldEvent
Entity.pushOutOfBlocks(double, double, double) calls World.getCollisionBoxes(AxisAlignedBB)
and before returning the list in World.getCollisionBoxes(Entity, AxisAlignedBB)entity contains the entity calling Entity.pushOutOfBlocks(double, double, double) or the entity passed in the World.getCollisionBoxes(Entity, AxisAlignedBB). Can be null.aabb contains the AxisAlignedBB passed in the method.collisionBoxesList contains the list of detected collision boxes intersecting with aabb. The list can be modified.Cancelable.HasResult MinecraftForge.EVENT_BUS.WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.UnloadEvent.HasResult, Event.Result| Constructor and Description |
|---|
GetCollisionBoxesEvent(World world,
Entity entity,
AxisAlignedBB aabb,
java.util.List<AxisAlignedBB> collisionBoxesList) |
| Modifier and Type | Method and Description |
|---|---|
AxisAlignedBB |
getAabb() |
java.util.List<AxisAlignedBB> |
getCollisionBoxesList() |
Entity |
getEntity() |
getWorldgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic GetCollisionBoxesEvent(World world, @Nullable Entity entity, AxisAlignedBB aabb, java.util.List<AxisAlignedBB> collisionBoxesList)
public Entity getEntity()
public AxisAlignedBB getAabb()
public java.util.List<AxisAlignedBB> getCollisionBoxesList()