Package com.jozufozu.flywheel.backend
Class Backend
java.lang.Object
com.jozufozu.flywheel.backend.Backend
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanUseInstancing(net.minecraft.world.level.Level world) static StringGet a string describing the Flywheel backend.static BackendTypeGet the current Flywheel backend type.static ProgramSpecgetSpec(net.minecraft.resources.ResourceLocation name) static ParallelTaskEngineGet a thread pool for running Flywheel related work in parallel.static voidinit()static booleanisFlywheelWorld(net.minecraft.world.level.LevelAccessor world) Used to avoid calling Flywheel functions on (fake) worlds that don't specifically support it.static booleanstatic booleanisOn()static voidrefresh()static void
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Method Details
-
getBackendType
Get the current Flywheel backend type. -
getTaskEngine
Get a thread pool for running Flywheel related work in parallel.- Returns:
- A global Flywheel thread pool.
-
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
-
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()
-