Class FlyingPosEvaluator
java.lang.Object
cn.nukkit.entity.ai.route.posevaluator.FlyingPosEvaluator
- All Implemented Interfaces:
IPosEvaluator
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public class FlyingPosEvaluator
extends Object
implements IPosEvaluator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
evalPos
(EntityIntelligent entity, Vector3 vec) 返回目标坐标是否可以作为路径点,通常用于返回非整数坐标点(飞行和游泳)的实体
如果此使用此评估器的寻路器返回非整数坐标点,才需要实现此方法。protected boolean
isPassable
(EntityIntelligent entity, Vector3 vector3) 指定实体在指定坐标上能否不发生碰撞 对于空间中的移动做了特别的优化Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.entity.ai.route.posevaluator.IPosEvaluator
evalStandingBlock
-
Constructor Details
-
FlyingPosEvaluator
public FlyingPosEvaluator()
-
-
Method Details
-
evalPos
Description copied from interface:IPosEvaluator
返回目标坐标是否可以作为路径点,通常用于返回非整数坐标点(飞行和游泳)的实体
如果此使用此评估器的寻路器返回非整数坐标点,才需要实现此方法。Returns whether the target coordinates can be used as a waypoint, usually used for entities that return non-integer coordinates (flying and swimming)
Only need to implement this method if the pathfinder using this evaluator returns non-integer coordinates.- Specified by:
evalPos
in interfaceIPosEvaluator
- Parameters:
entity
- 目标实体vec
- 评估坐标- Returns:
- 是否可以作为路径点
-
isPassable
指定实体在指定坐标上能否不发生碰撞 对于空间中的移动做了特别的优化
-