类 MobNavigation
- java.lang.Object
-
- net.minecraft.entity.ai.pathing.EntityNavigation
-
- net.minecraft.entity.ai.pathing.MobNavigation
-
public class MobNavigation extends EntityNavigation
- Mappings:
Namespace Name official bbaintermediary net/minecraft/class_1409named net/minecraft/entity/ai/pathing/MobNavigation
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanavoidSunlight-
从类继承的字段 net.minecraft.entity.ai.pathing.EntityNavigation
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world
-
-
构造器概要
构造器 构造器 说明 MobNavigation(MobEntity mob, World world)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidadjustPath()Adjusts the current path according to various special obstacles that may be in the way, for example sunlightprivate booleanallVisibleArePassable(int x, int y, int z, int xSize, int ySize, int zSize, Vec3d entityPos, double lookVecX, double lookVecZ)Checks whether all blocks in the box which are visible (in front of) the mob can be pathed throughprivate booleanallVisibleAreSafe(int centerX, int centerY, int centerZ, int xSize, int ySize, int zSize, Vec3d entityPos, double lookVecX, double lookVecZ)booleancanEnterOpenDoors()protected booleancanPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)protected booleancanWalkOnPath(PathNodeType pathType)protected PathNodeNavigatorcreatePathNodeNavigator(int range)PathfindPathTo(Entity entity, int distance)PathfindPathTo(BlockPos target, int distance)private intgetPathfindingY()The y-position to act as if the entity is at for pathfinding purposesprotected Vec3dgetPos()The position to act as if the entity is at for pathfinding purposesprotected booleanisAtValidPosition()booleanmethod_35140()voidsetAvoidSunlight(boolean avoidSunlight)voidsetCanEnterOpenDoors(boolean canEnterOpenDoors)voidsetCanPathThroughDoors(boolean canPathThroughDoors)-
从类继承的方法 net.minecraft.entity.ai.pathing.EntityNavigation
canSwim, checkTimeouts, continueFollowingPath, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getNodeReachProximity, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, isValidPosition, method_29934, method_35141, method_35142, onBlockChanged, recalculatePath, resetRangeMultiplier, setCanSwim, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, stop, tick
-
-
-
-
构造器详细资料
-
MobNavigation
public MobNavigation(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;
-
findPathTo
public Path findPathTo(BlockPos target, int distance)
- 覆盖:
findPathTo在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a(Lgb;I)Ldga;intermediary method_6348Lnet/minecraft/class_1408;method_6348(Lnet/minecraft/class_2338;I)Lnet/minecraft/class_11;named findPathToLnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/entity/ai/pathing/Path;
-
findPathTo
public Path findPathTo(Entity entity, int distance)
- 覆盖:
findPathTo在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official aLbbb;a(Lasl;I)Ldga;intermediary method_6349Lnet/minecraft/class_1408;method_6349(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_11;named findPathToLnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/ai/pathing/Path;
-
getPathfindingY
private int getPathfindingY()
The y-position to act as if the entity is at for pathfinding purposes- Mappings:
Namespace Name Mixin selector official uLbba;u()Iintermediary method_6362Lnet/minecraft/class_1409;method_6362()Inamed getPathfindingYLnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()I
-
adjustPath
protected void adjustPath()
Adjusts the current path according to various special obstacles that may be in the way, for example sunlight- 覆盖:
adjustPath在类中EntityNavigation- Mappings:
Namespace Name Mixin selector official F_Lbbb;F_()Vintermediary method_6359Lnet/minecraft/class_1408;method_6359()Vnamed adjustPathLnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()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
-
allVisibleAreSafe
private boolean allVisibleAreSafe(int centerX, int centerY, int centerZ, int xSize, int ySize, int zSize, Vec3d entityPos, double lookVecX, double lookVecZ)- Mappings:
Namespace Name Mixin selector official aLbba;a(IIIIIILdma;DD)Zintermediary method_6364Lnet/minecraft/class_1409;method_6364(IIIIIILnet/minecraft/class_243;DD)Znamed allVisibleAreSafeLnet/minecraft/entity/ai/pathing/MobNavigation;allVisibleAreSafe(IIIIIILnet/minecraft/util/math/Vec3d;DD)Z
-
canWalkOnPath
protected boolean canWalkOnPath(PathNodeType pathType)
- Mappings:
Namespace Name Mixin selector official aLbba;a(Ldfw;)Zintermediary method_26338Lnet/minecraft/class_1409;method_26338(Lnet/minecraft/class_7;)Znamed canWalkOnPathLnet/minecraft/entity/ai/pathing/MobNavigation;canWalkOnPath(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
-
allVisibleArePassable
private boolean allVisibleArePassable(int x, int y, int z, int xSize, int ySize, int zSize, Vec3d entityPos, double lookVecX, double lookVecZ)Checks whether all blocks in the box which are visible (in front of) the mob can be pathed through- Mappings:
Namespace Name Mixin selector official bLbba;b(IIIIIILdma;DD)Zintermediary method_6367Lnet/minecraft/class_1409;method_6367(IIIIIILnet/minecraft/class_243;DD)Znamed allVisibleArePassableLnet/minecraft/entity/ai/pathing/MobNavigation;allVisibleArePassable(IIIIIILnet/minecraft/util/math/Vec3d;DD)Z
-
setCanPathThroughDoors
public void setCanPathThroughDoors(boolean canPathThroughDoors)
- Mappings:
Namespace Name Mixin selector official aLbba;a(Z)Vintermediary method_6363Lnet/minecraft/class_1409;method_6363(Z)Vnamed setCanPathThroughDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;setCanPathThroughDoors(Z)V
-
method_35140
public boolean method_35140()
- Mappings:
Namespace Name Mixin selector official eLbba;e()Zintermediary method_35140Lnet/minecraft/class_1409;method_35140()Znamed method_35140Lnet/minecraft/entity/ai/pathing/MobNavigation;method_35140()Z
-
setCanEnterOpenDoors
public void setCanEnterOpenDoors(boolean canEnterOpenDoors)
- Mappings:
Namespace Name Mixin selector official bLbba;b(Z)Vintermediary method_35139Lnet/minecraft/class_1409;method_35139(Z)Vnamed setCanEnterOpenDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;setCanEnterOpenDoors(Z)V
-
canEnterOpenDoors
public boolean canEnterOpenDoors()
- Mappings:
Namespace Name Mixin selector official fLbba;f()Zintermediary method_6366Lnet/minecraft/class_1409;method_6366()Znamed canEnterOpenDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;canEnterOpenDoors()Z
-
setAvoidSunlight
public void setAvoidSunlight(boolean avoidSunlight)
- Mappings:
Namespace Name Mixin selector official cLbba;c(Z)Vintermediary method_6361Lnet/minecraft/class_1409;method_6361(Z)Vnamed setAvoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V
-
-