public interface IPathfindHandler
IDroneRegistry.addPathfindableBlock(Block, IPathfindHandler) to provide
custom pathfinding functionality for a particular block.| Modifier and Type | Method and Description |
|---|---|
boolean |
canPathfindThrough(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Check if the drone may pathfind through the block at the given world and block position.
|
default void |
onPathingThrough(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
CURRENTLY NOT IMPLEMENTED!
Will be called every tick as long as the drone is < 1 block away from the given coordinate.
|
boolean canPathfindThrough(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
world - the drone's worldpos - the block position to testdefault void onPathingThrough(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
world - the drone's worldpos - the block position to test