Class NodeProcessorDrone

java.lang.Object
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.WalkNodeEvaluator
net.minecraft.world.level.pathfinder.FlyNodeEvaluator
me.desht.pneumaticcraft.common.ai.NodeProcessorDrone

public class NodeProcessorDrone extends net.minecraft.world.level.pathfinder.FlyNodeEvaluator
  • Field Summary

    Fields inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator

    oldWaterCost, SPACE_BETWEEN_WALL_POSTS

    Fields inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator

    canFloat, canOpenDoors, canPassDoors, entityDepth, entityHeight, entityWidth, level, mob, nodes
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getNeighbors(net.minecraft.world.level.pathfinder.Node[] pathOptions, net.minecraft.world.level.pathfinder.Node currentPoint)
    Override this, because the super method adds diagonals, this is fancy but doesn't work well with drones (drones stuck behind a wall).
    protected net.minecraft.world.level.pathfinder.Node
    getNode(int x, int y, int z)
     

    Methods inherited from class net.minecraft.world.level.pathfinder.FlyNodeEvaluator

    done, getBlockPathType, getBlockPathType, getGoal, getStart, prepare

    Methods inherited from class net.minecraft.world.level.pathfinder.WalkNodeEvaluator

    checkNeighbourBlocks, evaluateBlockPathType, findAcceptedNode, getBlockPathTypeRaw, getBlockPathTypes, getBlockPathTypeStatic, getCachedBlockType, getFloorLevel, getFloorLevel, isAmphibious, isBurningBlock, isDiagonalValid, isNeighborValid

    Methods inherited from class net.minecraft.world.level.pathfinder.NodeEvaluator

    canFloat, canOpenDoors, canPassDoors, getNode, setCanFloat, setCanOpenDoors, setCanPassDoors

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NodeProcessorDrone

      public NodeProcessorDrone()
  • Method Details

    • getNode

      @Nullable protected net.minecraft.world.level.pathfinder.Node getNode(int x, int y, int z)
      Overrides:
      getNode in class net.minecraft.world.level.pathfinder.FlyNodeEvaluator
    • getNeighbors

      public int getNeighbors(net.minecraft.world.level.pathfinder.Node[] pathOptions, net.minecraft.world.level.pathfinder.Node currentPoint)
      Override this, because the super method adds diagonals, this is fancy but doesn't work well with drones (drones stuck behind a wall).
      Overrides:
      getNeighbors in class net.minecraft.world.level.pathfinder.FlyNodeEvaluator