Class ModManager

java.lang.Object
dev.prozilla.pine.core.mod.ModManager
All Implemented Interfaces:
Lifecycle

public class ModManager extends Object implements Lifecycle
Class responsible for loading and keeping track of modifications (mods).
  • Constructor Details

    • ModManager

      public ModManager(Application application)
  • Method Details

    • init

      public void init()
      Loads all mods from the mods directory by looking for jar files.
      Specified by:
      init in interface Lifecycle
    • beforeInput

      public void beforeInput(float deltaTime)
    • afterInput

      public void afterInput(float deltaTime)
    • beforeUpdate

      public void beforeUpdate(float deltaTime)
    • afterUpdate

      public void afterUpdate(float deltaTime)
    • beforeRender

      public void beforeRender()
    • afterRender

      public void afterRender()
    • destroy

      public void destroy()
      Removes all mods.
      Specified by:
      destroy in interface Lifecycle
    • getMods

      public ModMetadata[] getMods()
      Returns the metadata of all active mods.
    • isEmpty

      public boolean isEmpty()
      Returns true if there are no mods active.