Interface BlockMovementChecks.NotSupportiveCheck

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.NotSupportiveCheck
  • Method Summary

    Modifier and Type
    Method
    Description
    isNotSupportive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
    Check if the given block is non-supportive in the given direction.
  • Method Details

    • isNotSupportive

      BlockMovementChecks.CheckResult isNotSupportive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
      Check if the given block is non-supportive in the given direction. Non-supportive blocks stop block collection propagation. Examples:
      • Drills are not supportive for the block in front of them
      • Carpets are not supportive for the block above them
      • Non-extended stickers are not supportive of the block in front of them