Class SimpleBackend
java.lang.Object
dev.engine_room.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, IntSupplier priority, BooleanSupplier isSupported) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleBackend.Builderbuilder()createEngine(net.minecraft.world.level.LevelAccessor level) Create a new engine instance.booleanCheck if this backend is supported.intpriority()The priority of this backend.
-
Constructor Details
-
SimpleBackend
public SimpleBackend(Function<net.minecraft.world.level.LevelAccessor, Engine> engineFactory, IntSupplier priority, BooleanSupplier isSupported)
-
-
Method Details
-
builder
-
createEngine
Description copied from interface:BackendCreate a new engine instance.- Specified by:
createEnginein interfaceBackend
-
priority
public int priority()Description copied from interface:BackendThe priority of this backend.The backend with the highest priority upon first launch will be chosen as the default backend.
If the selected backend becomes unavailable for whatever reason, the next supported backend with a LOWER priority than the selected one will be chosen.
-
isSupported
public boolean isSupported()Description copied from interface:BackendCheck if this backend is supported.- Specified by:
isSupportedin interfaceBackend
-