Class BlockMovementChecks
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.BlockMovementChecks
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic enumstatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBlockAttachedTowards(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 movedstatic booleanisBrittle(net.minecraft.world.level.block.state.BlockState state) Brittle blocks will be collected first, as they may break when other blocks are removed before themstatic booleanisMovementAllowed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static booleanisMovementNecessary(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static booleanisNotSupportive(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.static voidstatic voidstatic voidstatic voidstatic voidstatic void
-
Constructor Details
-
BlockMovementChecks
public BlockMovementChecks()
-
-
Method Details
-
registerMovementNecessaryCheck
-
registerMovementAllowedCheck
-
registerBrittleCheck
-
registerAttachedCheck
-
registerNotSupportiveCheck
-
registerAllChecks
-
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
-