枚举 Sound.RegistrationType
- java.lang.Object
-
- java.lang.Enum<Sound.RegistrationType>
-
- net.minecraft.client.sound.Sound.RegistrationType
-
- 所有已实现的接口:
Serializable,Comparable<Sound.RegistrationType>
- 封闭类:
- Sound
@Environment(CLIENT) public static enum Sound.RegistrationType extends Enum<Sound.RegistrationType>
- Mappings:
Namespace Name official eyr$aintermediary net/minecraft/class_1111$class_1112named net/minecraft/client/sound/Sound$RegistrationType
-
-
枚举常量概要
枚举常量 枚举常量 说明 FILESOUND_EVENT
-
构造器概要
构造器 限定符 构造器 说明 privateRegistrationType(String name)
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Sound.RegistrationTypegetByName(String string)static Sound.RegistrationTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。static Sound.RegistrationType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
FILE
public static final Sound.RegistrationType FILE
- Mappings:
Namespace Name Mixin selector official aLeyr$a;a:Leyr$a;intermediary field_5474Lnet/minecraft/class_1111$class_1112;field_5474:Lnet/minecraft/class_1111$class_1112;named FILELnet/minecraft/client/sound/Sound$RegistrationType;FILE:Lnet/minecraft/client/sound/Sound$RegistrationType;
-
SOUND_EVENT
public static final Sound.RegistrationType SOUND_EVENT
- Mappings:
Namespace Name Mixin selector official bLeyr$a;b:Leyr$a;intermediary field_5473Lnet/minecraft/class_1111$class_1112;field_5473:Lnet/minecraft/class_1111$class_1112;named SOUND_EVENTLnet/minecraft/client/sound/Sound$RegistrationType;SOUND_EVENT:Lnet/minecraft/client/sound/Sound$RegistrationType;
-
-
字段详细资料
-
name
private final String name
- Mappings:
Namespace Name Mixin selector official cLeyr$a;c:Ljava/lang/String;intermediary field_5472Lnet/minecraft/class_1111$class_1112;field_5472:Ljava/lang/String;named nameLnet/minecraft/client/sound/Sound$RegistrationType;name:Ljava/lang/String;
-
-
构造器详细资料
-
RegistrationType
private RegistrationType(String name)
- Mappings:
Namespace Name Mixin selector official <init>Leyr$a;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1111$class_1112;<init>(Ljava/lang/String;ILjava/lang/String;)Vnamed <init>Lnet/minecraft/client/sound/Sound$RegistrationType;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
方法详细资料
-
values
public static Sound.RegistrationType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (Sound.RegistrationType c : Sound.RegistrationType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static Sound.RegistrationType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getByName
public static Sound.RegistrationType getByName(String string)
- Mappings:
Namespace Name Mixin selector official aLeyr$a;a(Ljava/lang/String;)Leyr$a;intermediary method_4773Lnet/minecraft/class_1111$class_1112;method_4773(Ljava/lang/String;)Lnet/minecraft/class_1111$class_1112;named getByNameLnet/minecraft/client/sound/Sound$RegistrationType;getByName(Ljava/lang/String;)Lnet/minecraft/client/sound/Sound$RegistrationType;
-
-