Interface IBlockHooks


public interface IBlockHooks
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable net.minecraft.world.level.pathfinder.PathType
    getPathfindingType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter context, net.minecraft.core.BlockPos pos)
    Allows the block to determine its own pathfinding type.
  • Method Details

    • getPathfindingType

      @Nullable default @Nullable net.minecraft.world.level.pathfinder.PathType getPathfindingType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter context, net.minecraft.core.BlockPos pos)
      Allows the block to determine its own pathfinding type.
      Parameters:
      state - The current state of the block.
      context - Additional context from the world the block is in.
      pos - The position of the block.
      Returns:
      The pathfinding type for the block. If null is returned the vanilla behavior for determining pathfinding will be used instead.