Class CustomGroundPathNavigation

java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.GroundPathNavigation
nokunami.floral_warfare.common.entity.ai.navigation.CustomGroundPathNavigation

public class CustomGroundPathNavigation extends net.minecraft.world.entity.ai.navigation.GroundPathNavigation
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation

    hasDelayedRecomputation, lastStuckCheck, lastStuckCheckPos, lastTimeoutCheck, level, maxDistanceToWaypoint, mob, nodeEvaluator, path, speedModifier, tick, timeLastRecompute, timeoutCachedNode, timeoutLimit, timeoutTimer
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomGroundPathNavigation(net.minecraft.world.entity.Mob pMob, net.minecraft.world.level.Level pLevel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    protected boolean
    If on ground or swimming and can swim
    @NotNull net.minecraft.world.level.pathfinder.Path
    createPath(@NotNull net.minecraft.core.BlockPos pPos, int pAccuracy)
    Returns path to given BlockPos
    @NotNull net.minecraft.world.level.pathfinder.Path
    createPath(net.minecraft.world.entity.Entity pEntity, int pAccuracy)
    Returns a path to the given entity or null
    protected @NotNull net.minecraft.world.level.pathfinder.PathFinder
    createPathFinder(int pMaxVisitedNodes)
     
    protected @NotNull net.minecraft.world.phys.Vec3
     
    protected boolean
    hasValidPathType(@NotNull net.minecraft.world.level.pathfinder.BlockPathTypes type)
     
    void
    setAvoidSun(boolean pAvoidSun)
     
    void
    setCanOpenDoors(boolean pCanOpenDoors)
     
    void
    setCanPassDoors(boolean pCanPassDoors)
     
    void
    setCanWalkOverFences(boolean pCanWalkOverFences)
     
    boolean
     
    protected void
    Trims path data from the end to the first sun covered block

    Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation

    canCutCorner, canFloat, canMoveDirectly, createPath, createPath, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getGroundY, getMaxDistanceToWaypoint, getNodeEvaluator, getPath, getTargetPos, isClearForMovementBetween, isDone, isInLiquid, isInProgress, isStableDestination, isStuck, moveTo, moveTo, moveTo, recomputePath, resetMaxVisitedNodesMultiplier, setCanFloat, setMaxVisitedNodesMultiplier, setSpeedModifier, shouldRecomputePath, stop, tick

    Methods inherited from class java.lang.Object

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

    • CustomGroundPathNavigation

      public CustomGroundPathNavigation(net.minecraft.world.entity.Mob pMob, net.minecraft.world.level.Level pLevel)
  • Method Details

    • createPathFinder

      @NotNull protected @NotNull net.minecraft.world.level.pathfinder.PathFinder createPathFinder(int pMaxVisitedNodes)
      Overrides:
      createPathFinder in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • canUpdatePath

      protected boolean canUpdatePath()
      If on ground or swimming and can swim
      Overrides:
      canUpdatePath in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • getTempMobPos

      @NotNull protected @NotNull net.minecraft.world.phys.Vec3 getTempMobPos()
      Overrides:
      getTempMobPos in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • createPath

      @NotNull public @NotNull net.minecraft.world.level.pathfinder.Path createPath(@NotNull @NotNull net.minecraft.core.BlockPos pPos, int pAccuracy)
      Returns path to given BlockPos
      Overrides:
      createPath in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • createPath

      @NotNull public @NotNull net.minecraft.world.level.pathfinder.Path createPath(net.minecraft.world.entity.Entity pEntity, int pAccuracy)
      Returns a path to the given entity or null
      Overrides:
      createPath in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • trimPath

      protected void trimPath()
      Trims path data from the end to the first sun covered block
      Overrides:
      trimPath in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • hasValidPathType

      protected boolean hasValidPathType(@NotNull @NotNull net.minecraft.world.level.pathfinder.BlockPathTypes type)
      Overrides:
      hasValidPathType in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • setCanOpenDoors

      public void setCanOpenDoors(boolean pCanOpenDoors)
      Overrides:
      setCanOpenDoors in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • canPassDoors

      public boolean canPassDoors()
      Overrides:
      canPassDoors in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • setCanPassDoors

      public void setCanPassDoors(boolean pCanPassDoors)
      Overrides:
      setCanPassDoors in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • canOpenDoors

      public boolean canOpenDoors()
      Overrides:
      canOpenDoors in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • setAvoidSun

      public void setAvoidSun(boolean pAvoidSun)
      Overrides:
      setAvoidSun in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation
    • shouldAvoidSun

      public boolean shouldAvoidSun()
    • setCanWalkOverFences

      public void setCanWalkOverFences(boolean pCanWalkOverFences)
      Overrides:
      setCanWalkOverFences in class net.minecraft.world.entity.ai.navigation.GroundPathNavigation