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

cn.nukkit.entity.EntityAsyncPrepare Maven / Gradle / Ivy

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

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

/**
 * 该方法将被异步并行调用,用于实体进行tick无关的操作
 */
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public interface EntityAsyncPrepare {
    /**
     * 该方法将被并行执行,每一刻都执行一次,并保证每一次onUpdate之前都执行完毕
     *
     * @param currentTick 当前游戏刻
     */
    void asyncPrepare(int currentTick);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy