Package org.kikikan.deadbymoonlight
Class GameComponent
- java.lang.Object
-
- org.kikikan.deadbymoonlight.Configurable
-
- org.kikikan.deadbymoonlight.GameComponent
-
- All Implemented Interfaces:
java.lang.Comparable<Configurable>
public abstract class GameComponent extends Configurable
A GameComponent acts like a global Perk. It catches every Event during the game just like a Perk and it is always on. (Unless it is disabled by the server admins.)
-
-
Constructor Summary
Constructors Constructor Description GameComponent(org.bukkit.plugin.java.JavaPlugin plugin, Game game)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getDisplayName()
The name that will be shown to playersprotected java.lang.String
getFileName()
Gets the name of the config file.Game
getGame()
Gets the Game object.int
hashCode()
-
Methods inherited from class org.kikikan.deadbymoonlight.Configurable
compareTo, getAllValuesFromConfig, getDefaultEnabled, getDescription, getFormattedName, getName, getPlugin, getRequirements, getValueFromConfig, isEnabled, toTextComponent
-
-
-
-
Constructor Detail
-
GameComponent
public GameComponent(org.bukkit.plugin.java.JavaPlugin plugin, Game game)
-
-
Method Detail
-
getGame
public final Game getGame()
Gets the Game object.- Returns:
- The Game object.
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from class:Configurable
The name that will be shown to players- Specified by:
getDisplayName
in classConfigurable
- Returns:
- The (translated) name that will be shown to players
-
getFileName
protected final java.lang.String getFileName()
Description copied from class:Configurable
Gets the name of the config file.- Specified by:
getFileName
in classConfigurable
- Returns:
- The name of the config file.
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals
in classConfigurable
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classConfigurable
-
-