Enum HologramControllerType

java.lang.Object
java.lang.Enum<HologramControllerType>
de.marcely.bedwars.api.world.hologram.HologramControllerType
All Implemented Interfaces:
Serializable, Comparable<HologramControllerType>, java.lang.constant.Constable

public enum HologramControllerType extends Enum<HologramControllerType>
Represents the type of the HologramController
  • Enum Constant Details

    • DEALER

      public static final HologramControllerType DEALER
      Opens a shop when interacted to it
    • UPGRADE_DEALER

      public static final HologramControllerType UPGRADE_DEALER
      Open an upgrade-shop when interacted to it
    • TEAM_SELECTOR

      public static final HologramControllerType TEAM_SELECTOR
      Used during lobby phase. Change your current team to another one by clicking on it.
    • STATS_HOLO

      public static final HologramControllerType STATS_HOLO
      Displays a players stats on a hologram
    • ARENASGUI_OPENER

      public static final HologramControllerType ARENASGUI_OPENER
      Opens an ArenasGUI when clicked on it
    • DEAD

      public static final HologramControllerType DEAD
      The default type when spawning a new hologram. Does literally nothing by itself
  • Method Details

    • values

      public static HologramControllerType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HologramControllerType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getInternalId

      public String getInternalId()
      Returns the id that's internally being used.
      Returns:
      The id of this type
    • fromInternalId

      @Nullable public static @Nullable HologramControllerType fromInternalId(String internalId)
      Tries to locate a type given by its getInternalId().
      Parameters:
      internalId - The id of the type
      Returns:
      The type whose id is equal to the given one. null when there's none