|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Note.Tone>
org.bukkit.Note.Tone
public static enum Note.Tone
An enum holding tones.
| Enum Constant Summary | |
|---|---|
A
|
|
B
|
|
C
|
|
D
|
|
E
|
|
F
|
|
G
|
|
| Field Summary | |
|---|---|
static byte |
TONES_COUNT
The number of tones including sharped tones. |
| Method Summary | |
|---|---|
static Note.Tone |
getById(byte id)
Deprecated. Magic value |
byte |
getId()
Deprecated. Magic value |
byte |
getId(boolean sharped)
Deprecated. Magic value |
boolean |
isSharpable()
Returns if this tone could be sharped. |
boolean |
isSharped(byte id)
Deprecated. Magic value |
static Note.Tone |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Note.Tone[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Note.Tone G
public static final Note.Tone A
public static final Note.Tone B
public static final Note.Tone C
public static final Note.Tone D
public static final Note.Tone E
public static final Note.Tone F
| Field Detail |
|---|
public static final byte TONES_COUNT
| Method Detail |
|---|
public static Note.Tone[] values()
for (Note.Tone c : Note.Tone.values()) System.out.println(c);
public static Note.Tone valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null@Deprecated public byte getId()
@Deprecated public byte getId(boolean sharped)
sharped - Set to true to return the sharped id.
public boolean isSharpable()
@Deprecated public boolean isSharped(byte id)
id - the id of the tone.
IllegalArgumentException - if neither the tone nor the semitone have the id.@Deprecated public static Note.Tone getById(byte id)
id - the id of the tone.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||