java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.BlockMovementChecks

public class BlockMovementChecks extends Object
  • Field Details

    • NON_MOVABLE

      public static final net.minecraft.resources.ResourceLocation NON_MOVABLE
  • Constructor Details

    • BlockMovementChecks

      public BlockMovementChecks()
  • Method Details

    • registerMovementNecessaryCheck

      public static void registerMovementNecessaryCheck(BlockMovementChecks.MovementNecessaryCheck check)
    • registerMovementAllowedCheck

      public static void registerMovementAllowedCheck(BlockMovementChecks.MovementAllowedCheck check)
    • registerBrittleCheck

      public static void registerBrittleCheck(BlockMovementChecks.BrittleCheck check)
    • registerAttachedCheck

      public static void registerAttachedCheck(BlockMovementChecks.AttachedCheck check)
    • registerNotSupportiveCheck

      public static void registerNotSupportiveCheck(BlockMovementChecks.NotSupportiveCheck check)
    • registerAllChecks

      public static void registerAllChecks(BlockMovementChecks.AllChecks checks)
    • isMovementNecessary

      public static boolean isMovementNecessary(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    • isMovementAllowed

      public static boolean isMovementAllowed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    • isBrittle

      public static boolean isBrittle(net.minecraft.world.level.block.state.BlockState state)
      Brittle blocks will be collected first, as they may break when other blocks are removed before them
    • isBlockAttachedTowards

      public static boolean isBlockAttachedTowards(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
      Attached blocks will move if blocks they are attached to are moved
    • isNotSupportive

      public static boolean isNotSupportive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction facing)
      Non-Supportive blocks will not continue a chain of blocks picked up by e.g. a piston