Class 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 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 class Configurable
        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 class Configurable
        Returns:
        The name of the config file.
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Configurable