toggle menu
gekkit
0.1.0
jvm
switch theme
search in API
gekkit
/
org.bukkit
/
Note
Note
public
class
Note
A note class to store specific note.
Members
Constructors
Note
Link copied to clipboard
public
void
Note
(
int note
)
Creates new note.
public
void
Note
(
int octave
,
Note.Tone
tone
,
boolean sharped
)
Creates new note.
Types
Tone
Link copied to clipboard
public
enum
Tone
An enum holding tones.
Functions
equals
Link copied to clipboard
public
boolean
equals
(
Object
obj
)
flat
Link copied to clipboard
public
static
Note
flat
(
int octave
,
Note.Tone
tone
)
Creates new note for flat tone, such as A-flat.
flattened
Link copied to clipboard
public
Note
flattened
(
)
get
Octave
Link copied to clipboard
public
int
getOctave
(
)
Returns the octave of this note.
get
Tone
Link copied to clipboard
public
Note.Tone
getTone
(
)
Returns the tone of this note.
hash
Code
Link copied to clipboard
public
int
hashCode
(
)
is
Sharped
Link copied to clipboard
public
boolean
isSharped
(
)
Returns if this note is sharped.
natural
Link copied to clipboard
public
static
Note
natural
(
int octave
,
Note.Tone
tone
)
Creates new note for natural tone, such as A-natural.
sharp
Link copied to clipboard
public
static
Note
sharp
(
int octave
,
Note.Tone
tone
)
Creates new note for sharp tone, such as A-sharp.
sharped
Link copied to clipboard
public
Note
sharped
(
)
to
String
Link copied to clipboard
public
String
toString
(
)