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

cn.nukkit.entity.ai.behaviorgroup.EmptyBehaviorGroup Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.entity.ai.behaviorgroup;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.entity.EntityIntelligent;
import cn.nukkit.entity.ai.behavior.IBehavior;
import cn.nukkit.entity.ai.controller.IController;
import cn.nukkit.entity.ai.memory.IMemoryStorage;
import cn.nukkit.entity.ai.route.finder.IRouteFinder;
import cn.nukkit.entity.ai.sensor.ISensor;

import java.util.Collections;
import java.util.Set;

/**
 * 用于未实现AI的实体,作为占位符使用
 */
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public class EmptyBehaviorGroup implements IBehaviorGroup {
    @Override
    public void evaluateBehaviors(EntityIntelligent entity) {

    }

    @Override
    public void evaluateCoreBehaviors(EntityIntelligent entity) {

    }

    @Override
    public void collectSensorData(EntityIntelligent entity) {

    }

    @Override
    public void tickRunningBehaviors(EntityIntelligent entity) {

    }

    @Override
    public void tickRunningCoreBehaviors(EntityIntelligent entity) {

    }

    @Override
    public void applyController(EntityIntelligent entity) {

    }

    @Override
    public Set getBehaviors() {
        return null;
    }

    @Override
    public Set getCoreBehaviors() {
        return null;
    }

    @Override
    public Set getRunningBehaviors() {
        return null;
    }

    @Override
    public Set getRunningCoreBehaviors() {
        return null;
    }

    @Override
    public Set getSensors() {
        return Collections.EMPTY_SET;
    }

    @Override
    public Set getControllers() {
        return Collections.EMPTY_SET;
    }

    @Override
    public IRouteFinder getRouteFinder() {
        return null;
    }

    @Override
    public void updateRoute(EntityIntelligent entity) {

    }

    @Override
    public IMemoryStorage getMemoryStorage() {
        return null;
    }

    @Override
    public boolean isForceUpdateRoute() {
        return false;
    }

    @Override
    public void setForceUpdateRoute(boolean forceUpdateRoute) {

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy