Enum Class PotionType

java.lang.Object
java.lang.Enum<PotionType>
eu.sculkpowered.server.potion.PotionType
All Implemented Interfaces:
Registry.Entry, Serializable, Comparable<PotionType>, Constable, Keyed

public enum PotionType extends Enum<PotionType> implements Registry.Entry
An enum of all supported potion types.
  • Enum Constant Details

    • WATER

      public static final PotionType WATER
    • MUNDANE

      public static final PotionType MUNDANE
    • THICK

      public static final PotionType THICK
    • AWKWARD

      public static final PotionType AWKWARD
    • NIGHT_VISION

      public static final PotionType NIGHT_VISION
    • LONG_NIGHT_VISION

      public static final PotionType LONG_NIGHT_VISION
    • INVISIBILITY

      public static final PotionType INVISIBILITY
    • LONG_INVISIBILITY

      public static final PotionType LONG_INVISIBILITY
    • LEAPING

      public static final PotionType LEAPING
    • LONG_LEAPING

      public static final PotionType LONG_LEAPING
    • STRONG_LEAPING

      public static final PotionType STRONG_LEAPING
    • FIRE_RESISTANCE

      public static final PotionType FIRE_RESISTANCE
    • LONG_FIRE_RESISTANCE

      public static final PotionType LONG_FIRE_RESISTANCE
    • SWIFTNESS

      public static final PotionType SWIFTNESS
    • LONG_SWIFTNESS

      public static final PotionType LONG_SWIFTNESS
    • STRONG_SWIFTNESS

      public static final PotionType STRONG_SWIFTNESS
    • SLOWNESS

      public static final PotionType SLOWNESS
    • LONG_SLOWNESS

      public static final PotionType LONG_SLOWNESS
    • STRONG_SLOWNESS

      public static final PotionType STRONG_SLOWNESS
    • TURTLE_MASTER

      public static final PotionType TURTLE_MASTER
    • LONG_TURTLE_MASTER

      public static final PotionType LONG_TURTLE_MASTER
    • STRONG_TURTLE_MASTER

      public static final PotionType STRONG_TURTLE_MASTER
    • WATER_BREATHING

      public static final PotionType WATER_BREATHING
    • LONG_WATER_BREATHING

      public static final PotionType LONG_WATER_BREATHING
    • HEALING

      public static final PotionType HEALING
    • STRONG_HEALING

      public static final PotionType STRONG_HEALING
    • HARMING

      public static final PotionType HARMING
    • STRONG_HARMING

      public static final PotionType STRONG_HARMING
    • POISON

      public static final PotionType POISON
    • LONG_POISON

      public static final PotionType LONG_POISON
    • STRONG_POISON

      public static final PotionType STRONG_POISON
    • REGENERATION

      public static final PotionType REGENERATION
    • LONG_REGENERATION

      public static final PotionType LONG_REGENERATION
    • STRONG_REGENERATION

      public static final PotionType STRONG_REGENERATION
    • STRENGTH

      public static final PotionType STRENGTH
    • LONG_STRENGTH

      public static final PotionType LONG_STRENGTH
    • STRONG_STRENGTH

      public static final PotionType STRONG_STRENGTH
    • WEAKNESS

      public static final PotionType WEAKNESS
    • LONG_WEAKNESS

      public static final PotionType LONG_WEAKNESS
    • LUCK

      public static final PotionType LUCK
    • SLOW_FALLING

      public static final PotionType SLOW_FALLING
    • LONG_SLOW_FALLING

      public static final PotionType LONG_SLOW_FALLING
    • WIND_CHARGED

      public static final PotionType WIND_CHARGED
    • WEAVING

      public static final PotionType WEAVING
    • OOZING

      public static final PotionType OOZING
    • INFESTED

      public static final PotionType INFESTED
  • Method Details

    • values

      public static PotionType[] 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 PotionType 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
    • key

      @NotNull public @NotNull Key key()
      Specified by:
      key in interface Keyed
    • id

      public int id()
      Description copied from interface: Registry.Entry
      Gets the id of the entry
      Specified by:
      id in interface Registry.Entry
      Returns:
      the id of the entry
    • asNBT

      @NotNull public @NotNull CompoundBinaryTag asNBT()
      Description copied from interface: Registry.Entry
      Gets the entry as a CompoundBinaryTag.
      Specified by:
      asNBT in interface Registry.Entry
      Returns:
      the entry as a CompoundBinaryTag