@Environment(value=CLIENT) public static enum Toast.Visibility extends Enum<Toast.Visibility>
Modifier and Type | Field and Description |
---|---|
private SoundEvent |
sound |
Modifier and Type | Method and Description |
---|---|
void |
playSound(SoundManager soundManager) |
static Toast.Visibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Toast.Visibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Toast.Visibility SHOW
public static final Toast.Visibility HIDE
private final SoundEvent sound
public static Toast.Visibility[] values()
for (Toast.Visibility c : Toast.Visibility.values()) System.out.println(c);
public static Toast.Visibility 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 void playSound(SoundManager soundManager)