Package net.darkhax.bookshelf.api.block
Interface IBlockHooks
public interface IBlockHooks
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.level.pathfinder.BlockPathTypesgetPathfindingType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) Gets the pathfinding type that should be used for the block.
-
Method Details
-
getPathfindingType
@Nullable default net.minecraft.world.level.pathfinder.BlockPathTypes getPathfindingType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) Gets the pathfinding type that should be used for the block.- Parameters:
state- The current state of the block.level- The level that the block is within.pos- The position of the block.- Returns:
- The pathfinding type that should be used for the block. When null is returned the vanilla behavior for determining pathfinding types will be used.
-