Class GenTierHandler
java.lang.Object
me.metallicgoat.tweaksaddon.api.gentiers.GenTierHandler
Represents a handler for a gen tier occurance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the type of action this handler performsabstract StringgetId()Get the unique id of this handler as used in configsabstract PluginGet the plugin which registered this handlerfinal booleanCheck if this handler is currently registeredabstract voidrun(GenTierLevel level, Arena arena) Called when the gen tier's time elapsed and it is being run.
-
Constructor Details
-
GenTierHandler
public GenTierHandler()
-
-
Method Details
-
run
Called when the gen tier's time elapsed and it is being run.- Parameters:
level- the gen tier level being runarena- the arena the gen tier is being run in
-
getPlugin
Get the plugin which registered this handler- Returns:
- the plugin which registered this handler
-
getId
Get the unique id of this handler as used in configs- Returns:
- the unique id of this handler
-
getActionType
Get the type of action this handler performsCustom handlers should always return
GenTierActionType.PLUGIN- Returns:
- the type of action this handler performs
-
isRegistered
public final boolean isRegistered()Check if this handler is currently registered- Returns:
- true if this handler is registered
-