Enum Class ExplosionType

java.lang.Object
java.lang.Enum<ExplosionType>
com.hbm_m.explosion.command.ExplosionType
All Implemented Interfaces:
Serializable, Comparable<ExplosionType>, Constable

public enum ExplosionType extends Enum<ExplosionType>
Типы ядерных взрывов для команды (строковые id, как в id()).
  • Enum Constant Details

    • EXPLOSION_NUKE_MK5

      public static final ExplosionType EXPLOSION_NUKE_MK5
    • EXPLOSION_NUKE_FATMAN

      public static final ExplosionType EXPLOSION_NUKE_FATMAN
    • EXPLOSION_NUKE_GENERIC

      public static final ExplosionType EXPLOSION_NUKE_GENERIC
    • EXPLOSION_NUKE_CHARGE

      public static final ExplosionType EXPLOSION_NUKE_CHARGE
    • EXPLOSION_NUKE_DUD

      public static final ExplosionType EXPLOSION_NUKE_DUD
    • EXPLOSION_NUKE_MINE

      public static final ExplosionType EXPLOSION_NUKE_MINE
    • EXPLOSION_NUKE_GRENADE

      public static final ExplosionType EXPLOSION_NUKE_GRENADE
  • Method Details

    • values

      public static ExplosionType[] 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

      public static ExplosionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • id

      public String 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

      public boolean supportsOptionKey(String key)
    • parse

      public static ExplosionType parse(String raw) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • tryParse

      public static Optional<ExplosionType> tryParse(String raw)
    • allIds

      public static String[] allIds()
      Идентификаторы для подсказок Tab (без коротких алиасов).