Package com.hammy275.immersivemc
Class Platform
java.lang.Object
com.hammy275.immersivemc.Platform
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
static boolean
isClient()
static boolean
static boolean
static boolean
isModLoaded
(String modId) static void
registerServerPlayerJoinListener
(Consumer<net.minecraft.server.level.ServerPlayer> listener) static void
registerServerPlayerLeaveListener
(Consumer<net.minecraft.server.level.ServerPlayer> listener) static void
registerServerPlayerPostTickListener
(Consumer<net.minecraft.server.level.ServerPlayer> listener) static void
registerServerPostTickListener
(Consumer<net.minecraft.server.MinecraftServer> listener) static void
sendToPlayer
(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.FriendlyByteBuf message) static void
sendToServer
(net.minecraft.network.FriendlyByteBuf message)
-
Constructor Details
-
Platform
public Platform()
-
-
Method Details
-
isClient
public static boolean isClient() -
isDevelopmentEnvironment
public static boolean isDevelopmentEnvironment() -
isForgeLike
public static boolean isForgeLike() -
isModLoaded
-
getConfigFolder
-
registerServerPostTickListener
public static void registerServerPostTickListener(Consumer<net.minecraft.server.MinecraftServer> listener) -
registerServerPlayerPostTickListener
public static void registerServerPlayerPostTickListener(Consumer<net.minecraft.server.level.ServerPlayer> listener) -
registerServerPlayerJoinListener
public static void registerServerPlayerJoinListener(Consumer<net.minecraft.server.level.ServerPlayer> listener) -
registerServerPlayerLeaveListener
public static void registerServerPlayerLeaveListener(Consumer<net.minecraft.server.level.ServerPlayer> listener) -
sendToServer
public static void sendToServer(net.minecraft.network.FriendlyByteBuf message) -
sendToPlayer
public static void sendToPlayer(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.FriendlyByteBuf message)
-