Package com.hbm_m.explosion.command
Enum Class ExplosionType
- All Implemented Interfaces:
Serializable,Comparable<ExplosionType>,Constable
Типы ядерных взрывов для команды (строковые id, как в
id()).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]allIds()Идентификаторы для подсказок Tab (без коротких алиасов).id()static ExplosionTypebooleanbooleanbooleanbooleanbooleanbooleansupportsOptionKey(String key) booleanstatic Optional<ExplosionType>static ExplosionTypeReturns the enum constant of this class with the specified name.static ExplosionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPLOSION_NUKE_MK5
-
EXPLOSION_NUKE_FATMAN
-
EXPLOSION_NUKE_GENERIC
-
EXPLOSION_NUKE_CHARGE
-
EXPLOSION_NUKE_DUD
-
EXPLOSION_NUKE_MINE
-
EXPLOSION_NUKE_GRENADE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
id
-
supportsCrater
public boolean supportsCrater() -
supportsDamage
public boolean supportsDamage() -
supportsBiomes
public boolean supportsBiomes() -
supportsParticles
public boolean supportsParticles() -
supportsAmplifier
public boolean supportsAmplifier() -
supportsFallout
public boolean supportsFallout() -
supportsOptionKey
-
parse
public static ExplosionType parse(String raw) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
tryParse
-
allIds
Идентификаторы для подсказок Tab (без коротких алиасов).
-