类 SwimNavigation
- java.lang.Object
-
- net.minecraft.entity.ai.pathing.EntityNavigation
-
- net.minecraft.entity.ai.pathing.SwimNavigation
-
public class SwimNavigation extends EntityNavigation
- Mappings:
Namespace Name official bbdintermediary net/minecraft/class_1412named net/minecraft/entity/ai/pathing/SwimNavigation
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleancanJumpOutOfWater-
从类继承的字段 net.minecraft.entity.ai.pathing.EntityNavigation
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world
-
-
构造器概要
构造器 构造器 说明 SwimNavigation(MobEntity mob, World world)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleancanPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)protected voidcheckTimeouts(Vec3d currentPos)protected voidcontinueFollowingPath()protected PathNodeNavigatorcreatePathNodeNavigator(int range)protected Vec3dgetPos()The position to act as if the entity is at for pathfinding purposesprotected booleanisAtValidPosition()booleanisValidPosition(BlockPos pos)voidsetCanSwim(boolean canSwim)voidtick()-
从类继承的方法 net.minecraft.entity.ai.pathing.EntityNavigation
adjustPath, canSwim, findPathTo, findPathTo, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getNodeReachProximity, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, method_29934, method_35141, method_35142, onBlockChanged, recalculatePath, resetRangeMultiplier, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, stop
-
-
-
-
构造器详细资料
-
SwimNavigation
public SwimNavigation(MobEntity mob, World world)
- Mappings:
Namespace Name Mixin selector official <init>Lbbb;<init>(Lasz;Lbvr;)Vintermediary <init>Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/ai/pathing/EntityNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)V
-
-
方法详细资料
-
createPathNodeNavigator
protected PathNodeNavigator createPathNodeNavigator(int range)
- 指定者:
createPathNodeNavigator在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a(I)Ldgc;intermediary method_6336Lnet/minecraft/class_1408;method_6336(I)Lnet/minecraft/class_13;named createPathNodeNavigatorLnet/minecraft/entity/ai/pathing/EntityNavigation;createPathNodeNavigator(I)Lnet/minecraft/entity/ai/pathing/PathNodeNavigator;
-
isAtValidPosition
protected boolean isAtValidPosition()
- 指定者:
isAtValidPosition在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a()Zintermediary method_6358Lnet/minecraft/class_1408;method_6358()Znamed isAtValidPositionLnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
-
getPos
protected Vec3d getPos()
The position to act as if the entity is at for pathfinding purposes- 指定者:
getPos在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official bLbbb;b()Ldma;intermediary method_6347Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;named getPosLnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
-
tick
public void tick()
- 覆盖:
tick在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official cLbbb;c()Vintermediary method_6360Lnet/minecraft/class_1408;method_6360()Vnamed tickLnet/minecraft/entity/ai/pathing/EntityNavigation;tick()V
-
continueFollowingPath
protected void continueFollowingPath()
- 覆盖:
continueFollowingPath在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official lLbbb;l()Vintermediary method_6339Lnet/minecraft/class_1408;method_6339()Vnamed continueFollowingPathLnet/minecraft/entity/ai/pathing/EntityNavigation;continueFollowingPath()V
-
checkTimeouts
protected void checkTimeouts(Vec3d currentPos)
- 覆盖:
checkTimeouts在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a(Ldma;)Vintermediary method_6346Lnet/minecraft/class_1408;method_6346(Lnet/minecraft/class_243;)Vnamed checkTimeoutsLnet/minecraft/entity/ai/pathing/EntityNavigation;checkTimeouts(Lnet/minecraft/util/math/Vec3d;)V
-
canPathDirectlyThrough
protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)
- 指定者:
canPathDirectlyThrough在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a(Ldma;Ldma;III)Zintermediary method_6341Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;III)Znamed canPathDirectlyThroughLnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;III)Z
-
isValidPosition
public boolean isValidPosition(BlockPos pos)
- 覆盖:
isValidPosition在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a(Lgb;)Zintermediary method_6333Lnet/minecraft/class_1408;method_6333(Lnet/minecraft/class_2338;)Znamed isValidPositionLnet/minecraft/entity/ai/pathing/EntityNavigation;isValidPosition(Lnet/minecraft/util/math/BlockPos;)Z
-
setCanSwim
public void setCanSwim(boolean canSwim)
- 覆盖:
setCanSwim在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official dLbbb;d(Z)Vintermediary method_6354Lnet/minecraft/class_1408;method_6354(Z)Vnamed setCanSwimLnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V
-
-