Package cn.nukkit.entity.ai.controller
Class WalkController
java.lang.Object
cn.nukkit.entity.ai.controller.WalkController
- All Implemented Interfaces:
IController
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public class WalkController
extends Object
implements IController
处理陆地行走实体运动
todo: 有待解耦
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
collidesBlocks
(EntityIntelligent entity, double dx, double dy, double dz) boolean
control
(EntityIntelligent entity) 实施行为protected void
needNewDirection
(EntityIntelligent entity)
-
Field Details
-
JUMP_COOL_DOWN
protected static final int JUMP_COOL_DOWN- See Also:
-
currentJumpCoolDown
protected int currentJumpCoolDown
-
-
Constructor Details
-
WalkController
public WalkController()
-
-
Method Details
-
control
Description copied from interface:IController
实施行为Implement behavior
- Specified by:
control
in interfaceIController
- Parameters:
entity
- 目标实体- Returns:
- 是否成功实施行为
-
needNewDirection
-
collidesBlocks
-