Class MultiMovementChecks
java.lang.Object
com.petrolpark.compat.create.core.block.multi.MultiMovementChecks
- All Implemented Interfaces:
com.simibubi.create.api.contraption.BlockMovementChecks.AttachedCheck,com.simibubi.create.api.contraption.BlockMovementChecks.MovementAllowedCheck
public class MultiMovementChecks
extends Object
implements com.simibubi.create.api.contraption.BlockMovementChecks.MovementAllowedCheck, com.simibubi.create.api.contraption.BlockMovementChecks.AttachedCheck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final <M extends IMulti<? super M>>
Optional<MultiBehaviour<M>> getMultiBehaviour(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) protected static <M extends IMulti<? super M>>
com.simibubi.create.api.contraption.BlockMovementChecks.CheckResultisAttachedMulti(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction attached, boolean cornersOnly) com.simibubi.create.api.contraption.BlockMovementChecks.CheckResultisBlockAttachedTowards(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) com.simibubi.create.api.contraption.BlockMovementChecks.CheckResultisMovementAllowed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
-
Constructor Details
-
MultiMovementChecks
public MultiMovementChecks()
-
-
Method Details
-
getMultiBehaviour
protected static final <M extends IMulti<? super M>> Optional<MultiBehaviour<M>> getMultiBehaviour(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) -
isMovementAllowed
public com.simibubi.create.api.contraption.BlockMovementChecks.CheckResult isMovementAllowed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) - Specified by:
isMovementAllowedin interfacecom.simibubi.create.api.contraption.BlockMovementChecks.MovementAllowedCheck
-
isBlockAttachedTowards
public com.simibubi.create.api.contraption.BlockMovementChecks.CheckResult 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) - Specified by:
isBlockAttachedTowardsin interfacecom.simibubi.create.api.contraption.BlockMovementChecks.AttachedCheck
-
isAttachedMulti
protected static <M extends IMulti<? super M>> com.simibubi.create.api.contraption.BlockMovementChecks.CheckResult isAttachedMulti(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction attached, boolean cornersOnly)
-