|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.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)
Returns the tone to id. |
byte |
getId()
Returns the not sharped id of this tone. |
byte |
getId(boolean sharped)
Returns the id of this tone. |
boolean |
isSharpable()
Returns if this tone could be sharped. |
boolean |
isSharped(byte id)
Returns if this tone id is the sharped id of the tone. |
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, 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 final 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 namepublic byte getId()
public byte getId(boolean sharped)
sharped
- Set to true to return the sharped id.
public boolean isSharpable()
public boolean isSharped(byte id)
id
- the id of the tone.
IllegalArgumentException
- if neither the tone nor the semitone have the id.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 |