Class ProxyPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
com.pixelmonmod.pixelmon.ai.naivgator.ProxyPathNavigation
public class ProxyPathNavigation
extends net.minecraft.world.entity.ai.navigation.PathNavigation
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
hasDelayedRecomputation, lastStuckCheck, lastStuckCheckPos, lastTimeoutCheck, level, maxDistanceToWaypoint, mob, nodeEvaluator, path, pathFinder, speedModifier, tick, timeLastRecompute, timeoutCachedNode, timeoutLimit, timeoutTimer
-
Constructor Summary
ConstructorDescriptionProxyPathNavigation
(net.minecraft.world.entity.Mob entity, net.minecraft.world.level.Level world, net.minecraft.world.entity.ai.navigation.PathNavigation proxiedNavigator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCutCorner
(net.minecraft.world.level.pathfinder.BlockPathTypes p_265292_) boolean
canFloat()
boolean
canMoveDirectly
(net.minecraft.world.phys.Vec3 p_186133_, net.minecraft.world.phys.Vec3 p_186134_) boolean
net.minecraft.world.level.pathfinder.Path
createPath
(Set<net.minecraft.core.BlockPos> p_241390_1_, int p_241390_2_) net.minecraft.world.level.pathfinder.Path
createPath
(Set<net.minecraft.core.BlockPos> p_225464_1_, int p_225464_2_, boolean p_225464_3_, int p_225464_4_) @Nullable net.minecraft.world.level.pathfinder.Path
createPath
(Set<net.minecraft.core.BlockPos> p_148223_, int p_148224_, boolean p_148225_, int p_148226_, float p_148227_) net.minecraft.world.level.pathfinder.Path
createPath
(Stream<net.minecraft.core.BlockPos> p_225463_1_, int p_225463_2_) net.minecraft.world.level.pathfinder.Path
createPath
(net.minecraft.core.BlockPos p_179680_1_, int p_179680_2_) @Nullable net.minecraft.world.level.pathfinder.Path
createPath
(net.minecraft.core.BlockPos p_148219_, int p_148220_, int p_148221_) net.minecraft.world.level.pathfinder.Path
createPath
(net.minecraft.world.entity.Entity p_75494_1_, int p_75494_2_) net.minecraft.world.level.pathfinder.PathFinder
createPathFinder
(int p_179679_1_) void
doStuckDetection
(net.minecraft.world.phys.Vec3 p_26539_) void
double
getGroundY
(net.minecraft.world.phys.Vec3 p_186132_) float
net.minecraft.world.level.pathfinder.NodeEvaluator
net.minecraft.world.level.pathfinder.Path
getPath()
net.minecraft.core.BlockPos
net.minecraft.world.phys.Vec3
boolean
isDone()
boolean
boolean
isStableDestination
(net.minecraft.core.BlockPos p_188555_1_) boolean
isStuck()
boolean
moveTo
(double p_75492_1_, double p_75492_3_, double p_75492_5_, double p_75492_7_) boolean
moveTo
(net.minecraft.world.entity.Entity p_75497_1_, double p_75497_2_) boolean
moveTo
(net.minecraft.world.level.pathfinder.Path p_75484_1_, double p_75484_2_) void
void
void
void
setCanFloat
(boolean p_212239_1_) void
setMaxVisitedNodesMultiplier
(float p_226335_1_) void
setProxiedNavigator
(net.minecraft.world.entity.ai.navigation.PathNavigation proxiedNavigator) void
setSpeedModifier
(double p_75489_1_) boolean
shouldRecomputePath
(net.minecraft.core.BlockPos p_200904_) boolean
shouldTargetNextNodeInDirection
(net.minecraft.world.phys.Vec3 p_26560_) void
stop()
void
tick()
void
void
trimPath()
Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
createPath, isClearForMovementBetween
-
Constructor Details
-
Method Details
-
createPathFinder
public net.minecraft.world.level.pathfinder.PathFinder createPathFinder(int p_179679_1_) - Specified by:
createPathFinder
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
getTempMobPos
public net.minecraft.world.phys.Vec3 getTempMobPos()- Specified by:
getTempMobPos
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
canUpdatePath
public boolean canUpdatePath()- Specified by:
canUpdatePath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
resetMaxVisitedNodesMultiplier
public void resetMaxVisitedNodesMultiplier()- Overrides:
resetMaxVisitedNodesMultiplier
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
setMaxVisitedNodesMultiplier
public void setMaxVisitedNodesMultiplier(float p_226335_1_) - Overrides:
setMaxVisitedNodesMultiplier
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
getTargetPos
public net.minecraft.core.BlockPos getTargetPos()- Overrides:
getTargetPos
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
setSpeedModifier
public void setSpeedModifier(double p_75489_1_) - Overrides:
setSpeedModifier
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
recomputePath
public void recomputePath()- Overrides:
recomputePath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public net.minecraft.world.level.pathfinder.Path createPath(Stream<net.minecraft.core.BlockPos> p_225463_1_, int p_225463_2_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public net.minecraft.world.level.pathfinder.Path createPath(Set<net.minecraft.core.BlockPos> p_241390_1_, int p_241390_2_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public net.minecraft.world.level.pathfinder.Path createPath(net.minecraft.core.BlockPos p_179680_1_, int p_179680_2_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public net.minecraft.world.level.pathfinder.Path createPath(net.minecraft.world.entity.Entity p_75494_1_, int p_75494_2_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public net.minecraft.world.level.pathfinder.Path createPath(Set<net.minecraft.core.BlockPos> p_225464_1_, int p_225464_2_, boolean p_225464_3_, int p_225464_4_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
moveTo
public boolean moveTo(double p_75492_1_, double p_75492_3_, double p_75492_5_, double p_75492_7_) - Overrides:
moveTo
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
moveTo
public boolean moveTo(net.minecraft.world.entity.Entity p_75497_1_, double p_75497_2_) - Overrides:
moveTo
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
moveTo
public boolean moveTo(@Nullable net.minecraft.world.level.pathfinder.Path p_75484_1_, double p_75484_2_) - Overrides:
moveTo
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
getPath
@Nullable public net.minecraft.world.level.pathfinder.Path getPath()- Overrides:
getPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
tick
public void tick()- Overrides:
tick
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
followThePath
public void followThePath()- Overrides:
followThePath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
isDone
public boolean isDone()- Overrides:
isDone
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
isInProgress
public boolean isInProgress()- Overrides:
isInProgress
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
stop
public void stop()- Overrides:
stop
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
trimPath
public void trimPath()- Overrides:
trimPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
isStableDestination
public boolean isStableDestination(net.minecraft.core.BlockPos p_188555_1_) - Overrides:
isStableDestination
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
getNodeEvaluator
public net.minecraft.world.level.pathfinder.NodeEvaluator getNodeEvaluator()- Overrides:
getNodeEvaluator
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
setCanFloat
public void setCanFloat(boolean p_212239_1_) - Overrides:
setCanFloat
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
canFloat
public boolean canFloat()- Overrides:
canFloat
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
isStuck
public boolean isStuck()- Overrides:
isStuck
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public @Nullable net.minecraft.world.level.pathfinder.Path createPath(net.minecraft.core.BlockPos p_148219_, int p_148220_, int p_148221_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
createPath
@Nullable public @Nullable net.minecraft.world.level.pathfinder.Path createPath(Set<net.minecraft.core.BlockPos> p_148223_, int p_148224_, boolean p_148225_, int p_148226_, float p_148227_) - Overrides:
createPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
getGroundY
public double getGroundY(net.minecraft.world.phys.Vec3 p_186132_) - Overrides:
getGroundY
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
shouldTargetNextNodeInDirection
public boolean shouldTargetNextNodeInDirection(net.minecraft.world.phys.Vec3 p_26560_) - Overrides:
shouldTargetNextNodeInDirection
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
doStuckDetection
public void doStuckDetection(net.minecraft.world.phys.Vec3 p_26539_) - Overrides:
doStuckDetection
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
timeoutPath
public void timeoutPath()- Overrides:
timeoutPath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
resetStuckTimeout
public void resetStuckTimeout()- Overrides:
resetStuckTimeout
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
canMoveDirectly
public boolean canMoveDirectly(net.minecraft.world.phys.Vec3 p_186133_, net.minecraft.world.phys.Vec3 p_186134_) - Overrides:
canMoveDirectly
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
canCutCorner
public boolean canCutCorner(net.minecraft.world.level.pathfinder.BlockPathTypes p_265292_) - Overrides:
canCutCorner
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
shouldRecomputePath
public boolean shouldRecomputePath(net.minecraft.core.BlockPos p_200904_) - Overrides:
shouldRecomputePath
in classnet.minecraft.world.entity.ai.navigation.PathNavigation
-
getMaxDistanceToWaypoint
public float getMaxDistanceToWaypoint()- Overrides:
getMaxDistanceToWaypoint
in classnet.minecraft.world.entity.ai.navigation.PathNavigation