Class OptifineSupport

java.lang.Object
net.minestom.server.extras.optifine.OptifineSupport

public final class OptifineSupport extends Object
Hacky class for Optifine because of an issue making the client crash if biomes 'swamp' and 'swamp_hills' are not registered.

Can be removed anytime, hope that it will be fixed.

  • Constructor Details

    • OptifineSupport

      public OptifineSupport()
  • Method Details

    • enable

      public static void enable()
      Enables optifine support by registering the required biomes.
      Throws:
      IllegalStateException - if optifine support is already enabled
    • isEnabled

      public static boolean isEnabled()