|
YATS/Forge Documentation
|
Public Member Functions | |
| void | onEntityCollision (EntityMinecart cart, Entity other) |
| AxisAlignedBB | getCollisionBox (EntityMinecart cart, Entity other) |
| AxisAlignedBB | getMinecartCollisionBox (EntityMinecart cart) |
| AxisAlignedBB | getBoundingBox (EntityMinecart cart) |
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.
| AxisAlignedBB net.minecraftforge.common.IMinecartCollisionHandler.getBoundingBox | ( | EntityMinecart | cart) |
This function replaces the function of the same name in EntityMinecart. It defines whether minecarts are solid to the player.
| cart | The cart for which the bounding box was requested. |
| AxisAlignedBB net.minecraftforge.common.IMinecartCollisionHandler.getCollisionBox | ( | EntityMinecart | cart, |
| Entity | other | ||
| ) |
This function replaced the function of the same name in EntityMinecart. It is used to define whether minecarts collide with specific entities, for example items.
| cart | The cart for which the collision box was requested. |
| other | The entity requesting the collision box. |
| AxisAlignedBB net.minecraftforge.common.IMinecartCollisionHandler.getMinecartCollisionBox | ( | EntityMinecart | cart) |
This function is used to define the box used for detecting minecart collisions. It is generally bigger that the normal collision box.
| cart | The cart for which the collision box was requested. |
| void net.minecraftforge.common.IMinecartCollisionHandler.onEntityCollision | ( | EntityMinecart | cart, |
| Entity | other | ||
| ) |
This basically replaces the function of the same name in EnityMinecart. Code in IMinecartHooks.applyEntityCollisionHook is still run.
| cart | The cart that called the collision. |
| other | The object it collided with. |