Enum Class SoundCategory

java.lang.Object
java.lang.Enum<SoundCategory>
net.minecraft.client.sound.SoundCategory
All Implemented Interfaces:
Serializable, Comparable<SoundCategory>, Constable

@Environment(CLIENT) public enum SoundCategory extends Enum<SoundCategory>
Mappings:
Namespace Name
official cxz
intermediary net/minecraft/class_2153
named net/minecraft/client/sound/SoundCategory
  • Enum Constant Details

    • MASTER

      public static final SoundCategory MASTER
      Mappings:
      Namespace Name Mixin selector
      official a Lcxz;a:Lcxz;
      intermediary field_9092 Lnet/minecraft/class_2153;field_9092:Lnet/minecraft/class_2153;
      named MASTER Lnet/minecraft/client/sound/SoundCategory;MASTER:Lnet/minecraft/client/sound/SoundCategory;
    • MUSIC

      public static final SoundCategory MUSIC
      Mappings:
      Namespace Name Mixin selector
      official b Lcxz;b:Lcxz;
      intermediary field_9093 Lnet/minecraft/class_2153;field_9093:Lnet/minecraft/class_2153;
      named MUSIC Lnet/minecraft/client/sound/SoundCategory;MUSIC:Lnet/minecraft/client/sound/SoundCategory;
    • RECORDS

      public static final SoundCategory RECORDS
      Mappings:
      Namespace Name Mixin selector
      official c Lcxz;c:Lcxz;
      intermediary field_9094 Lnet/minecraft/class_2153;field_9094:Lnet/minecraft/class_2153;
      named RECORDS Lnet/minecraft/client/sound/SoundCategory;RECORDS:Lnet/minecraft/client/sound/SoundCategory;
    • WEATHER

      public static final SoundCategory WEATHER
      Mappings:
      Namespace Name Mixin selector
      official d Lcxz;d:Lcxz;
      intermediary field_9095 Lnet/minecraft/class_2153;field_9095:Lnet/minecraft/class_2153;
      named WEATHER Lnet/minecraft/client/sound/SoundCategory;WEATHER:Lnet/minecraft/client/sound/SoundCategory;
    • BLOCKS

      public static final SoundCategory BLOCKS
      Mappings:
      Namespace Name Mixin selector
      official e Lcxz;e:Lcxz;
      intermediary field_9096 Lnet/minecraft/class_2153;field_9096:Lnet/minecraft/class_2153;
      named BLOCKS Lnet/minecraft/client/sound/SoundCategory;BLOCKS:Lnet/minecraft/client/sound/SoundCategory;
    • MOBS

      public static final SoundCategory MOBS
      Mappings:
      Namespace Name Mixin selector
      official f Lcxz;f:Lcxz;
      intermediary field_9097 Lnet/minecraft/class_2153;field_9097:Lnet/minecraft/class_2153;
      named MOBS Lnet/minecraft/client/sound/SoundCategory;MOBS:Lnet/minecraft/client/sound/SoundCategory;
    • ANIMALS

      public static final SoundCategory ANIMALS
      Mappings:
      Namespace Name Mixin selector
      official g Lcxz;g:Lcxz;
      intermediary field_9098 Lnet/minecraft/class_2153;field_9098:Lnet/minecraft/class_2153;
      named ANIMALS Lnet/minecraft/client/sound/SoundCategory;ANIMALS:Lnet/minecraft/client/sound/SoundCategory;
    • PLAYERS

      public static final SoundCategory PLAYERS
      Mappings:
      Namespace Name Mixin selector
      official h Lcxz;h:Lcxz;
      intermediary field_9099 Lnet/minecraft/class_2153;field_9099:Lnet/minecraft/class_2153;
      named PLAYERS Lnet/minecraft/client/sound/SoundCategory;PLAYERS:Lnet/minecraft/client/sound/SoundCategory;
    • AMBIENT

      public static final SoundCategory AMBIENT
      Mappings:
      Namespace Name Mixin selector
      official i Lcxz;i:Lcxz;
      intermediary field_9100 Lnet/minecraft/class_2153;field_9100:Lnet/minecraft/class_2153;
      named AMBIENT Lnet/minecraft/client/sound/SoundCategory;AMBIENT:Lnet/minecraft/client/sound/SoundCategory;
  • Field Details

    • NAME_MAP

      private static final Map NAME_MAP
      Mappings:
      Namespace Name Mixin selector
      official j Lcxz;j:Ljava/util/Map;
      intermediary field_9101 Lnet/minecraft/class_2153;field_9101:Ljava/util/Map;
      named NAME_MAP Lnet/minecraft/client/sound/SoundCategory;NAME_MAP:Ljava/util/Map;
    • CATEGORY_MAP

      private static final Map CATEGORY_MAP
      Mappings:
      Namespace Name Mixin selector
      official k Lcxz;k:Ljava/util/Map;
      intermediary field_9102 Lnet/minecraft/class_2153;field_9102:Ljava/util/Map;
      named CATEGORY_MAP Lnet/minecraft/client/sound/SoundCategory;CATEGORY_MAP:Ljava/util/Map;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official l Lcxz;l:Ljava/lang/String;
      intermediary field_9103 Lnet/minecraft/class_2153;field_9103:Ljava/lang/String;
      named name Lnet/minecraft/client/sound/SoundCategory;name:Ljava/lang/String;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official m Lcxz;m:I
      intermediary field_9104 Lnet/minecraft/class_2153;field_9104:I
      named id Lnet/minecraft/client/sound/SoundCategory;id:I
  • Constructor Details

    • SoundCategory

      private SoundCategory(String name, int id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxz;<init>(Ljava/lang/String;ILjava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_2153;<init>(Ljava/lang/String;ILjava/lang/String;I)V
      named <init> Lnet/minecraft/client/sound/SoundCategory;<init>(Ljava/lang/String;ILjava/lang/String;I)V
  • Method Details

    • values

      public static SoundCategory[] 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 SoundCategory 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
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lcxz;a()Ljava/lang/String;
      intermediary method_8382 Lnet/minecraft/class_2153;method_8382()Ljava/lang/String;
      named getName Lnet/minecraft/client/sound/SoundCategory;getName()Ljava/lang/String;
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official b Lcxz;b()I
      intermediary method_8384 Lnet/minecraft/class_2153;method_8384()I
      named getId Lnet/minecraft/client/sound/SoundCategory;getId()I
    • byName

      public static SoundCategory byName(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxz;a(Ljava/lang/String;)Lcxz;
      intermediary method_8383 Lnet/minecraft/class_2153;method_8383(Ljava/lang/String;)Lnet/minecraft/class_2153;
      named byName Lnet/minecraft/client/sound/SoundCategory;byName(Ljava/lang/String;)Lnet/minecraft/client/sound/SoundCategory;