Klasse Server
java.lang.Object
de.luckymcdev.foundryengine.server.Server
Shared server-side utilities and helpers for FoundryEngine.
Only use this class from dedicated server or logical server contexts.
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic @Nullable net.minecraft.world.item.crafting.RecipeManagerReturns the server'sRecipeManager, ornullif the server is not running.static @Nullable net.minecraft.server.MinecraftServerReturns the currentMinecraftServer, ornullif none is running.static CompletableFuture<Void> Reloads all server resources, picking up any newly available data packs.
-
Methodendetails
-
getServer
public static @Nullable net.minecraft.server.MinecraftServer getServer()Returns the currentMinecraftServer, ornullif none is running. -
getRecipeManager
public static @Nullable net.minecraft.world.item.crafting.RecipeManager getRecipeManager()Returns the server'sRecipeManager, ornullif the server is not running. -
reloadResources
Reloads all server resources, picking up any newly available data packs. Returns a completed future immediately if no server is running.
-