Instrument

public enum Instrument

Entries

Link copied to clipboard

Piano is the standard instrument for note block.

Link copied to clipboard

Bass drum is normally played when note block is on top of stone-like block

Link copied to clipboard

Snare drum is normally played when note block is on top of sandy block.

Link copied to clipboard

Sticks are normally played when note block is on top of glass block.

Link copied to clipboard

Bass guitar is normally played when note block is on top of wooden block.

Properties

Link copied to clipboard
public final byte type

Functions

Link copied to clipboard
public static Instrument valueOf(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.)

Link copied to clipboard
public static Array<Instrument> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.