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
ConstructorsConstructorDescriptionCustomGroundPathNavigation(net.minecraft.world.entity.Mob pMob, net.minecraft.world.level.Level pLevel) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected booleanIf on ground or swimming and can swim@NotNull net.minecraft.world.level.pathfinder.PathcreatePath(@NotNull net.minecraft.core.BlockPos pPos, int pAccuracy) Returns path to given BlockPos@NotNull net.minecraft.world.level.pathfinder.PathcreatePath(net.minecraft.world.entity.Entity pEntity, int pAccuracy) Returns a path to the given entity or nullprotected @NotNull net.minecraft.world.level.pathfinder.PathFindercreatePathFinder(int pMaxVisitedNodes) protected @NotNull net.minecraft.world.phys.Vec3protected booleanhasValidPathType(@NotNull net.minecraft.world.level.pathfinder.BlockPathTypes type) voidsetAvoidSun(boolean pAvoidSun) voidsetCanOpenDoors(boolean pCanOpenDoors) voidsetCanPassDoors(boolean pCanPassDoors) voidsetCanWalkOverFences(boolean pCanWalkOverFences) booleanprotected voidtrimPath()Trims path data from the end to the first sun covered blockMethods 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
-
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:
createPathFinderin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()If on ground or swimming and can swim- Overrides:
canUpdatePathin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
getTempMobPos
@NotNull protected @NotNull net.minecraft.world.phys.Vec3 getTempMobPos()- Overrides:
getTempMobPosin classnet.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:
createPathin classnet.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:
createPathin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
trimPath
protected void trimPath()Trims path data from the end to the first sun covered block- Overrides:
trimPathin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
hasValidPathType
protected boolean hasValidPathType(@NotNull @NotNull net.minecraft.world.level.pathfinder.BlockPathTypes type) - Overrides:
hasValidPathTypein classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
setCanOpenDoors
public void setCanOpenDoors(boolean pCanOpenDoors) - Overrides:
setCanOpenDoorsin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
canPassDoors
public boolean canPassDoors()- Overrides:
canPassDoorsin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
setCanPassDoors
public void setCanPassDoors(boolean pCanPassDoors) - Overrides:
setCanPassDoorsin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
canOpenDoors
public boolean canOpenDoors()- Overrides:
canOpenDoorsin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
setAvoidSun
public void setAvoidSun(boolean pAvoidSun) - Overrides:
setAvoidSunin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-
shouldAvoidSun
public boolean shouldAvoidSun() -
setCanWalkOverFences
public void setCanWalkOverFences(boolean pCanWalkOverFences) - Overrides:
setCanWalkOverFencesin classnet.minecraft.world.entity.ai.navigation.GroundPathNavigation
-