public interface IMinecartCollisionHandler
Modifier and Type | Method and Description |
---|---|
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 EntityMinecart.
|
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.