Class GameManager

java.lang.Object
de.luckymcdev.foundryengine.common.game.GameManager
All Implemented Interfaces:
BundleLifecycleListener

public class GameManager extends Object implements BundleLifecycleListener
  • Constructor Details

    • GameManager

      public GameManager()
  • Method Details

    • register

      public void register(GameSession session)
    • unregister

      public void unregister(net.minecraft.resources.Identifier id)
    • getSession

      public GameSession getSession(net.minecraft.resources.Identifier id)
    • getActiveSessions

      public Collection<GameSession> getActiveSessions()
    • hasSession

      public boolean hasSession(net.minecraft.resources.Identifier id)
    • startSession

      public boolean startSession(net.minecraft.resources.Identifier id)
    • stopSession

      public boolean stopSession(net.minecraft.resources.Identifier id)
    • stopAll

      public void stopAll()
    • tickCommon

      public void tickCommon(net.minecraft.world.level.Level level)
    • tickClient

      public void tickClient(net.minecraft.client.Minecraft client, net.minecraft.client.multiplayer.ClientLevel level)
    • tickServer

      public void tickServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerLevel level)
    • onBundlePreUnload

      public void onBundlePreUnload(Bundle bundle)
      Specified by:
      onBundlePreUnload in interface BundleLifecycleListener
    • onBundleReloadStarted

      public void onBundleReloadStarted()
      Specified by:
      onBundleReloadStarted in interface BundleLifecycleListener