Search in sources :

Example 1 with PathNodeMaker

use of net.minecraft.entity.ai.pathing.PathNodeMaker in project LittleMaidReBirth-Fabric by SistrScarlet.

the class FixedMoveControl method canWalkable.

protected boolean canWalkable(int x, int y, int z) {
    EntityNavigation nav = this.entity.getNavigation();
    PathNodeMaker pathNode = nav.getNodeMaker();
    return pathNode.getDefaultNodeType(this.entity.world, x, y, z) == PathNodeType.WALKABLE;
}
Also used : EntityNavigation(net.minecraft.entity.ai.pathing.EntityNavigation) PathNodeMaker(net.minecraft.entity.ai.pathing.PathNodeMaker)

Aggregations

EntityNavigation (net.minecraft.entity.ai.pathing.EntityNavigation)1 PathNodeMaker (net.minecraft.entity.ai.pathing.PathNodeMaker)1