MCPcopy Create free account
hub / github.com/PaperMC/Paper / Note

Method Note

paper-api/src/main/java/org/bukkit/Note.java:137–141  ·  view source on GitHub ↗

Creates a new note. @param note Internal note id. #getId() always return this value. The value has to be in the interval [0; 24].

(int note)

Source from the content-addressed store, hash-verified

135 * value. The value has to be in the interval [0; 24].
136 */
137 public Note(int note) {
138 Preconditions.checkArgument(note >= 0 && note <= 24, "The note value has to be between 0 and 24.");
139
140 this.note = (byte) note;
141 }
142
143 /**
144 * Creates a new note.

Callers

nothing calls this directly

Calls 4

isSharpableMethod · 0.80
valuesMethod · 0.65
ordinalMethod · 0.65
getIdMethod · 0.65

Tested by

no test coverage detected