Enum Class EventType

java.lang.Object
java.lang.Enum<EventType>
com.minecolonies.api.sounds.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>, Constable

public enum EventType extends Enum<EventType>
All possible sound events.
  • Enum Constant Details

    • GENERAL

      public static final EventType GENERAL
    • NOISE

      public static final EventType NOISE
    • OFF_TO_BED

      public static final EventType OFF_TO_BED
    • BAD_WEATHER

      public static final EventType BAD_WEATHER
    • SATURATION_LOW

      public static final EventType SATURATION_LOW
    • SATURATION_HIGH

      public static final EventType SATURATION_HIGH
    • BAD_HOUSING

      public static final EventType BAD_HOUSING
    • GOOD_HOUSING

      public static final EventType GOOD_HOUSING
    • GREETING

      public static final EventType GREETING
    • FAREWELL

      public static final EventType FAREWELL
    • MISSING_EQUIPMENT

      public static final EventType MISSING_EQUIPMENT
    • HAPPY

      public static final EventType HAPPY
    • UNHAPPY

      public static final EventType UNHAPPY
    • SICKNESS

      public static final EventType SICKNESS
    • INTERACTION

      public static final EventType INTERACTION
    • SUCCESS

      public static final EventType SUCCESS
    • DANGER

      public static final EventType DANGER
  • Method Details

    • values

      public static EventType[] 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 EventType 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
    • getChance

      public double getChance()
      Get the chance for the sound to play.
      Returns:
      the chance.
    • getId

      public String getId()
      Get the id.
      Returns:
      the id.