All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.entity.ai.controller.IController Maven / Gradle / Ivy

package cn.nukkit.entity.ai.controller;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.entity.EntityIntelligent;

/**
 * 控制器是用来控制实体的行为的,比如移动、跳跃、攻击等等的具体实现。
* 对于不同实体,可以提供不同的控制器,以实现上述行为的特殊实现。 *

* 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. */ @PowerNukkitXOnly @Since("1.6.0.0-PNX") public interface IController { /** * 实施行为 *

* Implement behavior * * @param entity 目标实体 * @return 是否成功实施行为 */ boolean control(EntityIntelligent entity); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy