Class OptifineSupport

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

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

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

  • Constructor Summary

    Constructors 
    Constructor Description
    OptifineSupport()  
  • Method Summary

    Modifier and Type Method Description
    static void enable()
    Enables optifine support by registering the required biomes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • enable

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