Class Environment

java.lang.Object
net.neoforged.neoforgespi.Environment

public class Environment extends Object
Global environment variables - allows discoverability with other systems without full forge dependency
  • Field Details

    • INSTANCE

      private static Environment INSTANCE
    • dist

      private final net.neoforged.api.distmarker.Dist dist
  • Constructor Details

  • Method Details

    • build

      public static void build(IEnvironment environment)
    • get

      public static Environment get()
    • getDist

      public net.neoforged.api.distmarker.Dist getDist()