Class EntityAI

java.lang.Object
cn.nukkit.entity.ai.EntityAI

@PowerNukkitXOnly @Since("1.19.50-r1") public final class EntityAI extends Object
存放一些AI框架的全局参数
  • Method Details

    • setDebugOption

      public static void setDebugOption(EntityAI.DebugOption option, boolean open)
    • checkDebugOption

      public static boolean checkDebugOption(EntityAI.DebugOption option)
    • setRouteParticleSpawnInterval

      public static void setRouteParticleSpawnInterval(long routeParticleSpawnInterval)
      Sets route particle spawn interval.(Unit millisecond)
      Parameters:
      routeParticleSpawnInterval - the route particle spawn interval
    • getRouteParticleSpawnInterval

      public static long getRouteParticleSpawnInterval()
      Gets route particle spawn interval.
      Returns:
      the route particle spawn interval