Interface BlockMovementChecks.AttachedCheck

Enclosing class:
BlockMovementChecks
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BlockMovementChecks.AttachedCheck
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Determine if the given block is attached to the block in the given direction.
  • Method Details

    • isBlockAttachedTowards

      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)
      Determine if the given block is attached to the block in the given direction. Attached blocks will be moved together. Examples:
      • Ladders are attached to their support block
      • Pressure plates are attached to the floor
      • Fluid tanks are attached to others in their multiblock
      • Bed halves are attached to each other