| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMinecartCollisionHandler
This class defines a replacement for the default minecart collision code. Only one handler can be registered at a time. It it registered with EntityMinecart.registerCollisionHandler(). If you use this, make it a configuration option.
| Method Summary | |
|---|---|
 AxisAlignedBB | 
getBoundingBox(EntityMinecart cart)
This function replaces the function of the same name in EntityMinecart.  | 
 AxisAlignedBB | 
getCollisionBox(EntityMinecart cart,
                               Entity other)
This function replaced the function of the same name in EntityMinecart.  | 
 AxisAlignedBB | 
getMinecartCollisionBox(EntityMinecart cart)
This function is used to define the box used for detecting minecart collisions.  | 
 void | 
onEntityCollision(EntityMinecart cart,
                                   Entity other)
This basically replaces the function of the same name in EnityMinecart.  | 
| Method Detail | 
|---|
void onEntityCollision(EntityMinecart cart,
                       Entity other)
cart - The cart that called the collision.other - The object it collided with.
AxisAlignedBB getCollisionBox(EntityMinecart cart,
                              Entity other)
cart - The cart for which the collision box was requested.other - The entity requesting the collision box.
AxisAlignedBB getMinecartCollisionBox(EntityMinecart cart)
cart - The cart for which the collision box was requested.
AxisAlignedBB getBoundingBox(EntityMinecart cart)
cart - The cart for which the bounding box was requested.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||