Package codechicken.lib.util
Class ServerUtils
java.lang.Object
codechicken.lib.util.ServerUtils
Created by covers1624 on 22/10/2016.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.authlib.GameProfilegetGameProfile(String username) static net.minecraft.server.level.ServerPlayerDeprecated.static List<net.minecraft.server.level.ServerPlayer>static Pathstatic PathgetSaveDirectory(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) static net.minecraft.server.MinecraftServerDeprecated.static booleanisPlayerOP(String username) static booleanisPlayerOP(UUID uuid) static voidopenContainer(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider containerProvider) static voidopenContainer(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider containerProvider, Consumer<MCDataOutput> packetConsumer)
-
Constructor Details
-
ServerUtils
public ServerUtils()
-
-
Method Details
-
getServer
Deprecated. -
getPlayer
Deprecated. -
getPlayers
-
getSaveDirectory
-
getSaveDirectory
public static Path getSaveDirectory(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
getGameProfile
-
isPlayerOP
-
isPlayerOP
-
openContainer
public static void openContainer(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider containerProvider) -
openContainer
public static void openContainer(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.MenuProvider containerProvider, Consumer<MCDataOutput> packetConsumer)
-