Enum Class Sound.Type

java.lang.Object
java.lang.Enum<Sound.Type>
net.minecraft.client.audio.Sound.Type
All Implemented Interfaces:
Serializable, Comparable<Sound.Type>, Constable
Enclosing class:
Sound

public static enum Sound.Type extends Enum<Sound.Type>
  • Enum Constant Details

    • FILE

      public static final Sound.Type FILE
    • SOUND_EVENT

      public static final Sound.Type SOUND_EVENT
  • Field Details

    • name

      private final String name
  • Constructor Details

    • Type

      private Type(String p_i46631_3_)
  • Method Details

    • values

      public static Sound.Type[] 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 Sound.Type 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
    • getByName

      public static Sound.Type getByName(String p_188704_0_)