Enum HologramControllerType
- All Implemented Interfaces:
Serializable
,Comparable<HologramControllerType>
,java.lang.constant.Constable
Represents the type of the
HologramController
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOpens an ArenasGUI when clicked on itThe default type when spawning a new hologram.Opens a shop when interacted to itDisplays a players stats on a hologramUsed during lobby phase.Open an upgrade-shop when interacted to it -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable HologramControllerType
fromInternalId
(String internalId) Tries to locate a type given by itsgetInternalId()
.Returns the id that's internally being used.static HologramControllerType
Returns the enum constant of this type with the specified name.static HologramControllerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEALER
Opens a shop when interacted to it -
UPGRADE_DEALER
Open an upgrade-shop when interacted to it -
TEAM_SELECTOR
Used during lobby phase. Change your current team to another one by clicking on it. -
STATS_HOLO
Displays a players stats on a hologram -
ARENASGUI_OPENER
Opens an ArenasGUI when clicked on it -
DEAD
The default type when spawning a new hologram. Does literally nothing by itself
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getInternalId
Returns the id that's internally being used.- Returns:
- The id of this type
-
fromInternalId
Tries to locate a type given by itsgetInternalId()
.- Parameters:
internalId
- The id of the type- Returns:
- The type whose id is equal to the given one.
null
when there's none
-