Class MechPowerUtils

java.lang.Object
api.block.util.MechPowerUtils

public class MechPowerUtils extends Object
  • Constructor Details

    • MechPowerUtils

      public MechPowerUtils()
  • Method Details

    • isBlockPoweredByAxleToSide

      public static boolean isBlockPoweredByAxleToSide(World world, int i, int j, int k, int iSide)
    • isBlockIDAxle

      public static boolean isBlockIDAxle(int iBlockID)
    • doesBlockHaveFacingAxleToSide

      public static boolean doesBlockHaveFacingAxleToSide(IBlockAccess blockAccess, int i, int j, int k, int iSide)
    • doesBlockHaveAnyFacingAxles

      public static boolean doesBlockHaveAnyFacingAxles(IBlockAccess blockAccess, int i, int j, int k)
    • isBlockPoweredByHandCrank

      public static boolean isBlockPoweredByHandCrank(World world, int i, int j, int k)
    • isBlockPoweredByHandCrankToSide

      public static boolean isBlockPoweredByHandCrankToSide(World world, int i, int j, int k, int iSide)
    • isBlockPoweredByAxle

      public static boolean isBlockPoweredByAxle(World world, int i, int j, int k, MechanicalBlock block)
    • destroyHorizontallyAttachedAxles

      public static void destroyHorizontallyAttachedAxles(World world, int i, int j, int k)
    • destroyAttachedAxles

      public static void destroyAttachedAxles(World world, int i, int j, int k, MechanicalBlock block)
    • isPoweredGearBox

      public static boolean isPoweredGearBox(IBlockAccess blockAccess, int i, int j, int k)