Interface EngineLevelAccess

All Superinterfaces:
EngineInterface<net.minecraft.server.level.ServerLevel>
All Known Implementing Classes:
ServerLevelMixin

public interface EngineLevelAccess extends EngineInterface<net.minecraft.server.level.ServerLevel>
Controls server level ticking behavior when no players are present.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    engine$setTickWhenEmpty(boolean tickWhenEmpty)
    Sets whether the level should continue ticking when empty of players.
    default boolean
    Returns whether the level should currently tick.

    Methods inherited from interface EngineInterface

    engine$self
  • Method Details

    • engine$setTickWhenEmpty

      default void engine$setTickWhenEmpty(boolean tickWhenEmpty)
      Sets whether the level should continue ticking when empty of players.
    • engine$shouldTick

      default boolean engine$shouldTick()
      Returns whether the level should currently tick.