Class PathNodeMaker

java.lang.Object
net.minecraft.entity.ai.pathing.PathNodeMaker
Direct Known Subclasses:
LandPathNodeMaker, WaterPathNodeMaker

public abstract class PathNodeMaker
extends Object
  • Field Details

    • cachedWorld

      protected ChunkCache cachedWorld
    • entity

      protected MobEntity entity
    • pathNodeCache

      protected final Int2ObjectMap<PathNode> pathNodeCache
    • entityBlockXSize

      protected int entityBlockXSize
    • entityBlockYSize

      protected int entityBlockYSize
    • entityBlockZSize

      protected int entityBlockZSize
    • canEnterOpenDoors

      protected boolean canEnterOpenDoors
    • canOpenDoors

      protected boolean canOpenDoors
    • canSwim

      protected boolean canSwim
  • Constructor Details

    • PathNodeMaker

      public PathNodeMaker()
  • Method Details

    • init

      public void init​(ChunkCache cachedWorld, MobEntity entity)
    • clear

      public void clear()
    • method_27137

      protected PathNode method_27137​(BlockPos blockPos)
    • getNode

      protected PathNode getNode​(int x, int y, int z)
    • getStart

      public abstract PathNode getStart()
    • getNode

      public abstract TargetPathNode getNode​(double x, double y, double z)
    • getSuccessors

      public abstract int getSuccessors​(PathNode[] successors, PathNode node)
    • getNodeType

      public abstract PathNodeType getNodeType​(BlockView world, int x, int y, int z, MobEntity mob, int sizeX, int sizeY, int sizeZ, boolean canOpenDoors, boolean canEnterOpenDoors)
    • getDefaultNodeType

      public abstract PathNodeType getDefaultNodeType​(BlockView world, int x, int y, int z)
      Gets the path node type at the given position without adjusting the node type according to whether the entity can enter or open doors
    • setCanEnterOpenDoors

      public void setCanEnterOpenDoors​(boolean canEnterOpenDoors)
    • setCanOpenDoors

      public void setCanOpenDoors​(boolean canOpenDoors)
    • setCanSwim

      public void setCanSwim​(boolean canSwim)
    • canEnterOpenDoors

      public boolean canEnterOpenDoors()
    • canOpenDoors

      public boolean canOpenDoors()
    • canSwim

      public boolean canSwim()