Package net.minecraft.client.sound
Enum SoundCategory
- All Implemented Interfaces:
Serializable,Comparable<SoundCategory>,java.lang.constant.Constable
@Environment(CLIENT) public enum SoundCategory extends Enum<SoundCategory>
- Mappings:
Namespace Name official bpgintermediary net/minecraft/class_1306named net/minecraft/client/sound/SoundCategory
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private static Map<Integer,SoundCategory>CATEGORY_MAPprivate intidprivate Stringnameprivate static Map<String,SoundCategory>NAME_MAP -
Constructor Summary
Constructors Modifier Constructor Description privateSoundCategory(String name, int id) -
Method Summary
Modifier and Type Method Description static SoundCategorybyName(String name)intgetId()StringgetName()static SoundCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static SoundCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MASTER
- Mappings:
Namespace Name Mixin selector official aLbpg;a:Lbpg;intermediary field_5414Lnet/minecraft/class_1306;field_5414:Lnet/minecraft/class_1306;named MASTERLnet/minecraft/client/sound/SoundCategory;MASTER:Lnet/minecraft/client/sound/SoundCategory;
-
MUSIC
- Mappings:
Namespace Name Mixin selector official bLbpg;b:Lbpg;intermediary field_5415Lnet/minecraft/class_1306;field_5415:Lnet/minecraft/class_1306;named MUSICLnet/minecraft/client/sound/SoundCategory;MUSIC:Lnet/minecraft/client/sound/SoundCategory;
-
RECORDS
- Mappings:
Namespace Name Mixin selector official cLbpg;c:Lbpg;intermediary field_5416Lnet/minecraft/class_1306;field_5416:Lnet/minecraft/class_1306;named RECORDSLnet/minecraft/client/sound/SoundCategory;RECORDS:Lnet/minecraft/client/sound/SoundCategory;
-
WEATHER
- Mappings:
Namespace Name Mixin selector official dLbpg;d:Lbpg;intermediary field_5417Lnet/minecraft/class_1306;field_5417:Lnet/minecraft/class_1306;named WEATHERLnet/minecraft/client/sound/SoundCategory;WEATHER:Lnet/minecraft/client/sound/SoundCategory;
-
BLOCKS
- Mappings:
Namespace Name Mixin selector official eLbpg;e:Lbpg;intermediary field_5418Lnet/minecraft/class_1306;field_5418:Lnet/minecraft/class_1306;named BLOCKSLnet/minecraft/client/sound/SoundCategory;BLOCKS:Lnet/minecraft/client/sound/SoundCategory;
-
MOBS
- Mappings:
Namespace Name Mixin selector official fLbpg;f:Lbpg;intermediary field_5419Lnet/minecraft/class_1306;field_5419:Lnet/minecraft/class_1306;named MOBSLnet/minecraft/client/sound/SoundCategory;MOBS:Lnet/minecraft/client/sound/SoundCategory;
-
ANIMALS
- Mappings:
Namespace Name Mixin selector official gLbpg;g:Lbpg;intermediary field_5420Lnet/minecraft/class_1306;field_5420:Lnet/minecraft/class_1306;named ANIMALSLnet/minecraft/client/sound/SoundCategory;ANIMALS:Lnet/minecraft/client/sound/SoundCategory;
-
PLAYERS
- Mappings:
Namespace Name Mixin selector official hLbpg;h:Lbpg;intermediary field_5421Lnet/minecraft/class_1306;field_5421:Lnet/minecraft/class_1306;named PLAYERSLnet/minecraft/client/sound/SoundCategory;PLAYERS:Lnet/minecraft/client/sound/SoundCategory;
-
AMBIENT
- Mappings:
Namespace Name Mixin selector official iLbpg;i:Lbpg;intermediary field_5422Lnet/minecraft/class_1306;field_5422:Lnet/minecraft/class_1306;named AMBIENTLnet/minecraft/client/sound/SoundCategory;AMBIENT:Lnet/minecraft/client/sound/SoundCategory;
-
-
Field Details
-
NAME_MAP
- Mappings:
Namespace Name Mixin selector official jLbpg;j:Ljava/util/Map;intermediary field_5423Lnet/minecraft/class_1306;field_5423:Ljava/util/Map;named NAME_MAPLnet/minecraft/client/sound/SoundCategory;NAME_MAP:Ljava/util/Map;
-
CATEGORY_MAP
- Mappings:
Namespace Name Mixin selector official kLbpg;k:Ljava/util/Map;intermediary field_5424Lnet/minecraft/class_1306;field_5424:Ljava/util/Map;named CATEGORY_MAPLnet/minecraft/client/sound/SoundCategory;CATEGORY_MAP:Ljava/util/Map;
-
name
- Mappings:
Namespace Name Mixin selector official lLbpg;l:Ljava/lang/String;intermediary field_5425Lnet/minecraft/class_1306;field_5425:Ljava/lang/String;named nameLnet/minecraft/client/sound/SoundCategory;name:Ljava/lang/String;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official mLbpg;m:Iintermediary field_5426Lnet/minecraft/class_1306;field_5426:Inamed idLnet/minecraft/client/sound/SoundCategory;id:I
-
-
Constructor Details
-
SoundCategory
- Mappings:
Namespace Name Mixin selector official <init>Lbpg;<init>(Ljava/lang/String;ILjava/lang/String;I)Vintermediary <init>Lnet/minecraft/class_1306;<init>(Ljava/lang/String;ILjava/lang/String;I)Vnamed <init>Lnet/minecraft/client/sound/SoundCategory;<init>(Ljava/lang/String;ILjava/lang/String;I)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getName
- Mappings:
Namespace Name Mixin selector official aLbpg;a()Ljava/lang/String;intermediary method_4515Lnet/minecraft/class_1306;method_4515()Ljava/lang/String;named getNameLnet/minecraft/client/sound/SoundCategory;getName()Ljava/lang/String;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official bLbpg;b()Iintermediary method_4517Lnet/minecraft/class_1306;method_4517()Inamed getIdLnet/minecraft/client/sound/SoundCategory;getId()I
-
byName
- Mappings:
Namespace Name Mixin selector official aLbpg;a(Ljava/lang/String;)Lbpg;intermediary method_4516Lnet/minecraft/class_1306;method_4516(Ljava/lang/String;)Lnet/minecraft/class_1306;named byNameLnet/minecraft/client/sound/SoundCategory;byName(Ljava/lang/String;)Lnet/minecraft/client/sound/SoundCategory;
-