Enum SoundCategory

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

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

    • MASTER

      public static final SoundCategory MASTER
      Mappings:
      Namespace Name Mixin selector
      official a Lbpg;a:Lbpg;
      intermediary field_5414 Lnet/minecraft/class_1306;field_5414:Lnet/minecraft/class_1306;
      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 Lbpg;b:Lbpg;
      intermediary field_5415 Lnet/minecraft/class_1306;field_5415:Lnet/minecraft/class_1306;
      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 Lbpg;c:Lbpg;
      intermediary field_5416 Lnet/minecraft/class_1306;field_5416:Lnet/minecraft/class_1306;
      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 Lbpg;d:Lbpg;
      intermediary field_5417 Lnet/minecraft/class_1306;field_5417:Lnet/minecraft/class_1306;
      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 Lbpg;e:Lbpg;
      intermediary field_5418 Lnet/minecraft/class_1306;field_5418:Lnet/minecraft/class_1306;
      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 Lbpg;f:Lbpg;
      intermediary field_5419 Lnet/minecraft/class_1306;field_5419:Lnet/minecraft/class_1306;
      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 Lbpg;g:Lbpg;
      intermediary field_5420 Lnet/minecraft/class_1306;field_5420:Lnet/minecraft/class_1306;
      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 Lbpg;h:Lbpg;
      intermediary field_5421 Lnet/minecraft/class_1306;field_5421:Lnet/minecraft/class_1306;
      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 Lbpg;i:Lbpg;
      intermediary field_5422 Lnet/minecraft/class_1306;field_5422:Lnet/minecraft/class_1306;
      named AMBIENT Lnet/minecraft/client/sound/SoundCategory;AMBIENT:Lnet/minecraft/client/sound/SoundCategory;
  • Field Details

    • NAME_MAP

      private static final Map<String,​SoundCategory> NAME_MAP
      Mappings:
      Namespace Name Mixin selector
      official j Lbpg;j:Ljava/util/Map;
      intermediary field_5423 Lnet/minecraft/class_1306;field_5423:Ljava/util/Map;
      named NAME_MAP Lnet/minecraft/client/sound/SoundCategory;NAME_MAP:Ljava/util/Map;
    • CATEGORY_MAP

      private static final Map<Integer,​SoundCategory> CATEGORY_MAP
      Mappings:
      Namespace Name Mixin selector
      official k Lbpg;k:Ljava/util/Map;
      intermediary field_5424 Lnet/minecraft/class_1306;field_5424: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 Lbpg;l:Ljava/lang/String;
      intermediary field_5425 Lnet/minecraft/class_1306;field_5425: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 Lbpg;m:I
      intermediary field_5426 Lnet/minecraft/class_1306;field_5426: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> Lbpg;<init>(Ljava/lang/String;ILjava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_1306;<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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SoundCategory valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lbpg;a()Ljava/lang/String;
      intermediary method_4515 Lnet/minecraft/class_1306;method_4515()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 Lbpg;b()I
      intermediary method_4517 Lnet/minecraft/class_1306;method_4517()I
      named getId Lnet/minecraft/client/sound/SoundCategory;getId()I
    • byName

      public static SoundCategory byName​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpg;a(Ljava/lang/String;)Lbpg;
      intermediary method_4516 Lnet/minecraft/class_1306;method_4516(Ljava/lang/String;)Lnet/minecraft/class_1306;
      named byName Lnet/minecraft/client/sound/SoundCategory;byName(Ljava/lang/String;)Lnet/minecraft/client/sound/SoundCategory;