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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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.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)
     
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      isMovementAllowed in interface com.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:
      isBlockAttachedTowards in interface com.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)