Class SimpleBackend
java.lang.Object
com.jozufozu.flywheel.lib.backend.SimpleBackend
- All Implemented Interfaces:
Backend
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBackend(Function<net.minecraft.world.level.LevelAccessor, Engine> engineFactory, Supplier<Backend> fallback, BooleanSupplier isSupported) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleBackend.Builderbuilder()createEngine(net.minecraft.world.level.LevelAccessor level) Create a new engine instance.Get a fallback backend in case this backend is not supported.booleanCheck if this backend is supported.
-
Constructor Details
-
SimpleBackend
public SimpleBackend(Function<net.minecraft.world.level.LevelAccessor, Engine> engineFactory, Supplier<Backend> fallback, BooleanSupplier isSupported)
-
-
Method Details
-
builder
-
createEngine
Description copied from interface:BackendCreate a new engine instance.- Specified by:
createEnginein interfaceBackend
-
findFallback
Description copied from interface:BackendGet a fallback backend in case this backend is not supported.- Specified by:
findFallbackin interfaceBackend
-
isSupported
public boolean isSupported()Description copied from interface:BackendCheck if this backend is supported.- Specified by:
isSupportedin interfaceBackend
-