Package mindustry.mod

Class Scripts

java.lang.Object
mindustry.mod.Scripts
All Implemented Interfaces:
Disposable

public class Scripts extends Object implements Disposable
  • Field Details

    • context

      public final rhino.Context context
    • scope

      public final rhino.Scriptable scope
  • Constructor Details

    • Scripts

      public Scripts()
  • Method Details

    • hasErrored

      public boolean hasErrored()
    • runConsole

      public String runConsole(String text)
    • log

      public void log(String source, String message)
    • log

      public void log(Log.LogLevel level, String source, String message)
    • newFloats

      public float[] newFloats(int capacity)
    • run

      public void run(Mods.LoadedMod mod, Fi file)
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable