-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayer.java
More file actions
42 lines (31 loc) · 773 Bytes
/
Layer.java
File metadata and controls
42 lines (31 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package cn.nukkitmot.exampleplugin.nbs;
import java.util.HashMap;
public class Layer {
private final HashMap<Integer, Note> notes;
private byte volume = 100;
private String name = "";
public Layer() {
this.notes = new HashMap<>();
}
public HashMap<Integer, Note> getHashMap() {
return notes;
}
public Note getNote(int tick) {
return notes.get(tick);
}
public void setNote(int tick, Note note) {
notes.put(tick, note);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public byte getVolume() {
return volume;
}
public void setVolume(byte volume) {
this.volume = volume;
}
}