Class ServerLevelMixin
java.lang.Object
de.luckymcdev.foundryengine.mixin.level.ServerLevelMixin
- All Implemented Interfaces:
EngineInterface<net.minecraft.server.level.ServerLevel>, EngineLevelAccess
Implements
EngineLevelAccess on ServerLevel to support tick-when-empty and per-level clock routing.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidengine$setTickWhenEmpty(boolean tickWhenEmpty) Sets whether this level should tick even when empty.booleanReturns whether this level should continue ticking.abstract net.minecraft.server.level.ServerChunkCacheabstract List<net.minecraft.server.level.ServerPlayer> players()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EngineInterface
engine$self
-
Constructor Details
-
ServerLevelMixin
public ServerLevelMixin()
-
-
Method Details
-
players
-
getChunkSource
public abstract net.minecraft.server.level.ServerChunkCache getChunkSource() -
engine$setTickWhenEmpty
public void engine$setTickWhenEmpty(boolean tickWhenEmpty) Sets whether this level should tick even when empty.- Specified by:
engine$setTickWhenEmptyin interfaceEngineLevelAccess
-
engine$shouldTick
public boolean engine$shouldTick()Returns whether this level should continue ticking.- Specified by:
engine$shouldTickin interfaceEngineLevelAccess
-