-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSong.java
More file actions
79 lines (65 loc) · 1.89 KB
/
Copy pathSong.java
File metadata and controls
79 lines (65 loc) · 1.89 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package cn.nukkitmot.exampleplugin.nbs;
import java.io.File;
import java.util.HashMap;
public class Song {
private final HashMap<Integer, Layer> layerHashMap;
private final short songHeight;
private final short length;
private final String title;
private final File path;
private final String author;
private final String description;
private final float speed;
private final float delay;
public Song(Song other) {
this.speed = other.getSpeed();
this.delay = 20 / speed;
this.layerHashMap = other.getLayerHashMap();
this.songHeight = other.getSongHeight();
this.length = other.getLength();
this.title = other.getTitle();
this.author = other.getAuthor();
this.description = other.getDescription();
this.path = other.getPath();
}
public Song(float speed, HashMap<Integer, Layer> layerHashMap,
short songHeight, short length, String title, String author,
String description, File path) {
this.speed = speed;
this.delay = 20 / speed;
this.layerHashMap = layerHashMap;
this.songHeight = songHeight;
this.length = length;
this.title = title;
this.author = author;
this.description = description;
this.path = path;
}
public HashMap<Integer, Layer> getLayerHashMap() {
return layerHashMap;
}
public short getSongHeight() {
return songHeight;
}
public short getLength() {
return length;
}
public String getTitle() {
return title;
}
public String getAuthor() {
return author;
}
public File getPath() {
return path;
}
public String getDescription() {
return description;
}
public float getSpeed() {
return speed;
}
public float getDelay() {
return delay;
}
}