public interface IMinecartCollisionHandler
Modifier and Type | Method and Description |
---|---|
AxisAlignedBB |
getBoundingBox(AbstractMinecartEntity cart)
This function replaces the function of the same name in EntityMinecart.
|
AxisAlignedBB |
getCollisionBox(AbstractMinecartEntity cart,
Entity other)
This function replaced the function of the same name in EntityMinecart.
|
AxisAlignedBB |
getMinecartCollisionBox(AbstractMinecartEntity cart)
This function is used to define the box used for detecting minecart collisions.
|
void |
onEntityCollision(AbstractMinecartEntity cart,
Entity other)
This basically replaces the function of the same name in EntityMinecart.
|
void onEntityCollision(AbstractMinecartEntity cart, Entity other)
cart
- The cart that called the collision.other
- The object it collided with.AxisAlignedBB getCollisionBox(AbstractMinecartEntity cart, Entity other)
cart
- The cart for which the collision box was requested.other
- The entity requesting the collision box.AxisAlignedBB getMinecartCollisionBox(AbstractMinecartEntity cart)
cart
- The cart for which the collision box was requested.AxisAlignedBB getBoundingBox(AbstractMinecartEntity cart)
cart
- The cart for which the bounding box was requested.