Package dev.prozilla.pine.core.mod
Class ModManager
java.lang.Object
dev.prozilla.pine.core.mod.ModManager
- All Implemented Interfaces:
Lifecycle
Class responsible for loading and keeping track of modifications (mods).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterInput
(float deltaTime) void
void
afterUpdate
(float deltaTime) void
beforeInput
(float deltaTime) void
void
beforeUpdate
(float deltaTime) void
destroy()
Removes all mods.getMods()
Returns the metadata of all active mods.void
init()
Loads all mods from themods
directory by looking for jar files.boolean
isEmpty()
Returns true if there are no mods active.
-
Constructor Details
-
ModManager
-
-
Method Details
-
init
public void init()Loads all mods from themods
directory by looking for jar files. -
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. -
getMods
Returns the metadata of all active mods. -
isEmpty
public boolean isEmpty()Returns true if there are no mods active.
-