Package net.minecraftforge.event.world
Enum NoteBlockEvent.Note
- java.lang.Object
-
- java.lang.Enum<NoteBlockEvent.Note>
-
- net.minecraftforge.event.world.NoteBlockEvent.Note
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NoteBlockEvent.Note>
- Enclosing class:
- NoteBlockEvent
public static enum NoteBlockEvent.Note extends java.lang.Enum<NoteBlockEvent.Note>
Information about the pitch of a Noteblock note. For altered notes such as G-Sharp / A-Flat the Sharp variant is used here.
-
-
Field Summary
Fields Modifier and Type Field Description private static NoteBlockEvent.Note[]
values
-
Constructor Summary
Constructors Modifier Constructor Description private
Note()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static NoteBlockEvent.Note
fromId(int id)
static NoteBlockEvent.Note
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NoteBlockEvent.Note[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
F_SHARP
public static final NoteBlockEvent.Note F_SHARP
-
G
public static final NoteBlockEvent.Note G
-
G_SHARP
public static final NoteBlockEvent.Note G_SHARP
-
A
public static final NoteBlockEvent.Note A
-
A_SHARP
public static final NoteBlockEvent.Note A_SHARP
-
B
public static final NoteBlockEvent.Note B
-
C
public static final NoteBlockEvent.Note C
-
C_SHARP
public static final NoteBlockEvent.Note C_SHARP
-
D
public static final NoteBlockEvent.Note D
-
D_SHARP
public static final NoteBlockEvent.Note D_SHARP
-
E
public static final NoteBlockEvent.Note E
-
F
public static final NoteBlockEvent.Note F
-
-
Field Detail
-
values
private static final NoteBlockEvent.Note[] values
-
-
Method Detail
-
values
public static NoteBlockEvent.Note[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NoteBlockEvent.Note c : NoteBlockEvent.Note.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoteBlockEvent.Note valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromId
static NoteBlockEvent.Note fromId(int id)
-
-