From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- .../common/IMinecartCollisionHandler.html | 274 +++++++++++++++++++++ 1 file changed, 274 insertions(+) create mode 100644 javadoc/net/minecraftforge/common/IMinecartCollisionHandler.html (limited to 'javadoc/net/minecraftforge/common/IMinecartCollisionHandler.html') diff --git a/javadoc/net/minecraftforge/common/IMinecartCollisionHandler.html b/javadoc/net/minecraftforge/common/IMinecartCollisionHandler.html new file mode 100644 index 0000000..cdc7fd7 --- /dev/null +++ b/javadoc/net/minecraftforge/common/IMinecartCollisionHandler.html @@ -0,0 +1,274 @@ + + + + + +IMinecartCollisionHandler (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
net.minecraftforge.common
+

Interface IMinecartCollisionHandler

+
+
+
+
    +
  • +
    +
    +
    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 Detail

      + + + +
        +
      • +

        onEntityCollision

        +
        void onEntityCollision(EntityMinecart cart,
        +                     Entity other)
        +
        This basically replaces the function of the same name in EnityMinecart. + Code in IMinecartHooks.applyEntityCollisionHook is still run.
        +
        Parameters:
        cart - The cart that called the collision.
        other - The object it collided with.
        +
      • +
      + + + +
        +
      • +

        getCollisionBox

        +
        AxisAlignedBB 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.
        +
        Parameters:
        cart - The cart for which the collision box was requested.
        other - The entity requesting the collision box.
        +
        Returns:
        The collision box or null.
        +
      • +
      + + + +
        +
      • +

        getMinecartCollisionBox

        +
        AxisAlignedBB 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.
        +
        Parameters:
        cart - The cart for which the collision box was requested.
        +
        Returns:
        The collision box, cannot be null.
        +
      • +
      + + + +
        +
      • +

        getBoundingBox

        +
        AxisAlignedBB getBoundingBox(EntityMinecart cart)
        +
        This function replaces the function of the same name in EntityMinecart. + It defines whether minecarts are solid to the player.
        +
        Parameters:
        cart - The cart for which the bounding box was requested.
        +
        Returns:
        The bounding box or null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3