Class Platform

java.lang.Object
com.hammy275.immersivemc.Platform

public class Platform extends Object
  • Constructor Details

    • Platform

      public Platform()
  • Method Details

    • isClient

      public static boolean isClient()
    • isDevelopmentEnvironment

      public static boolean isDevelopmentEnvironment()
    • isForgeLike

      public static boolean isForgeLike()
    • isModLoaded

      public static boolean isModLoaded(String modId)
    • getConfigFolder

      public static File 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)