Interface IController

All Known Implementing Classes:
DiveController, FluctuateController, LiftController, LookController, SpaceMoveController, WalkController

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public interface IController
控制器是用来控制实体的行为的,比如移动、跳跃、攻击等等的具体实现。
对于不同实体,可以提供不同的控制器,以实现上述行为的特殊实现。

The controller is used to control the behavior of the entity, such as the specific implementation of moving, jumping, attacking, etc.
For different entities, different controllers can be provided to achieve special implementations of the above behaviors.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    实施行为
  • Method Details

    • control

      boolean control(EntityIntelligent entity)
      实施行为

      Implement behavior

      Parameters:
      entity - 目标实体
      Returns:
      是否成功实施行为