Package api.block.util
Class MechPowerUtils
java.lang.Object
api.block.util.MechPowerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroyAttachedAxles(World world, int i, int j, int k, MechanicalBlock block) static voiddestroyHorizontallyAttachedAxles(World world, int i, int j, int k) static booleandoesBlockHaveAnyFacingAxles(IBlockAccess blockAccess, int i, int j, int k) static booleandoesBlockHaveFacingAxleToSide(IBlockAccess blockAccess, int i, int j, int k, int iSide) static booleanisBlockIDAxle(int iBlockID) static booleanisBlockPoweredByAxle(World world, int i, int j, int k, MechanicalBlock block) static booleanisBlockPoweredByAxleToSide(World world, int i, int j, int k, int iSide) static booleanisBlockPoweredByHandCrank(World world, int i, int j, int k) static booleanisBlockPoweredByHandCrankToSide(World world, int i, int j, int k, int iSide) static booleanisPoweredGearBox(IBlockAccess blockAccess, int i, int j, int k)
-
Constructor Details
-
MechPowerUtils
public MechPowerUtils()
-
-
Method Details
-
isBlockPoweredByAxleToSide
-
isBlockIDAxle
public static boolean isBlockIDAxle(int iBlockID) -
doesBlockHaveFacingAxleToSide
public static boolean doesBlockHaveFacingAxleToSide(IBlockAccess blockAccess, int i, int j, int k, int iSide) -
doesBlockHaveAnyFacingAxles
-
isBlockPoweredByHandCrank
-
isBlockPoweredByHandCrankToSide
-
isBlockPoweredByAxle
-
destroyHorizontallyAttachedAxles
-
destroyAttachedAxles
-
isPoweredGearBox
-