Enum UpgradeTriggerHandlerType
java.lang.Object
java.lang.Enum<UpgradeTriggerHandlerType>
de.marcely.bedwars.api.game.upgrade.UpgradeTriggerHandlerType
- All Implemented Interfaces:
Serializable
,Comparable<UpgradeTriggerHandlerType>
,java.lang.constant.Constable
Represents the type of
UpgradeTriggerHandler
.
Custom ones use PLUGIN
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReveals infiltrating players who are invisibleAdds the Protection enchantment to armorGives players Speed and Jump Boost when there is an infiltrating playerGives the Haste effectGives the regeneration effect near your baseGives mining fatigue to infuriating playersA custom type created by something accessing the API.Gives an infiltrating player blindness and slownessAdds the Sharpness enchantment to swords and axesIncreases the speed of nearby spawners -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getId()
Returns the id that's being used for the handler.static UpgradeTriggerHandlerType
Returns the enum constant of this type with the specified name.static UpgradeTriggerHandlerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHARPNESS
Adds the Sharpness enchantment to swords and axes -
ARMOR_PROTECTION
Adds the Protection enchantment to armor -
HASTE
Gives the Haste effect -
SPAWNER_MULTIPLIER
Increases the speed of nearby spawners -
HEAL_POOL
Gives the regeneration effect near your base -
REGULAR_TRAP
Gives an infiltrating player blindness and slowness -
COUNTER_OFFENSIVE_TRAP
Gives players Speed and Jump Boost when there is an infiltrating player -
ALARM_TRAP
Reveals infiltrating players who are invisible -
MINING_FATIGUE_TRAP
Gives mining fatigue to infuriating players -
PLUGIN
A custom type created by something accessing the API.
-
-
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
-
getId
Returns the id that's being used for the handler.null
is being returned when passingPLUGIN
.- Returns:
- The id of this handler type
-