public class GetCollisionBoxesEvent extends WorldEvent
World#collidesWithAnyBlock(AxisAlignedBB)
and before returning the list in World#getCollisionBoxes(Entity, AxisAlignedBB)entity contains the entity passed in the World#getCollisionBoxes(Entity, AxisAlignedBB). Can be null. Calls from World#collidesWithAnyBlock(AxisAlignedBB) will 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| コンストラクタと説明 |
|---|
GetCollisionBoxesEvent(World world,
Entity entity,
AxisAlignedBB aabb,
java.util.List<AxisAlignedBB> collisionBoxesList) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
AxisAlignedBB |
getAabb() |
java.util.List<AxisAlignedBB> |
getCollisionBoxesList() |
Entity |
getEntity() |
getWorldgetListenerList, getParentListenerList, 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()