Class Backend

java.lang.Object
com.jozufozu.flywheel.backend.Backend

public class Backend extends Object
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
  • Method Details

    • getBackendType

      public static BackendType getBackendType()
      Get the current Flywheel backend type.
    • getTaskEngine

      public static ParallelTaskEngine getTaskEngine()
      Get a thread pool for running Flywheel related work in parallel.
      Returns:
      A global Flywheel thread pool.
    • getBackendDescriptor

      public static String getBackendDescriptor()
      Get a string describing the Flywheel backend. When there are eventually multiple backends (Meshlet, MDI, GL31 Draw Instanced are planned), this will name which one is in use.
    • getSpec

      @Nullable public static ProgramSpec getSpec(net.minecraft.resources.ResourceLocation name)
    • refresh

      public static void refresh()
    • isOn

      public static boolean isOn()
    • canUseInstancing

      public static boolean canUseInstancing(@Nullable net.minecraft.world.level.Level world)
    • isFlywheelWorld

      public static boolean isFlywheelWorld(@Nullable net.minecraft.world.level.LevelAccessor world)
      Used to avoid calling Flywheel functions on (fake) worlds that don't specifically support it.
    • isGameActive

      public static boolean isGameActive()
    • reloadWorldRenderers

      public static void reloadWorldRenderers()
    • init

      public static void init()