public enum SoundSource extends Enum<SoundSource>
Enum Constant and Description |
---|
AMBIENT |
BLOCK |
HOSTILE |
MASTER |
MUSIC |
NEUTRAL |
PLAYER |
RECORD |
VOICE |
WEATHER |
Modifier and Type | Method and Description |
---|---|
static Optional<SoundSource> |
findBySource(String source) |
int |
getId() |
String |
getName() |
static SoundSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SoundSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoundSource MASTER
public static final SoundSource MUSIC
public static final SoundSource RECORD
public static final SoundSource WEATHER
public static final SoundSource BLOCK
public static final SoundSource HOSTILE
public static final SoundSource NEUTRAL
public static final SoundSource PLAYER
public static final SoundSource AMBIENT
public static final SoundSource VOICE
public static SoundSource[] values()
for (SoundSource c : SoundSource.values()) System.out.println(c);
public static SoundSource valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Optional<SoundSource> findBySource(String source)
public String getName()
public int getId()
Copyright © 2016–2021. All rights reserved.