You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/net/raphimc/noteblocklib/model/note/Note.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ public Note() {
40
40
41
41
/**
42
42
* @return The group ID of the note. Groups are used in events to determine which notes are affected by an event. -1 means that the note is not in any group.
43
+
* @implNote Not checked for in equals and hashCode, as it is only used for events and does not affect the sound of the note.
43
44
*/
44
45
publicintgetGroupId() {
45
46
returnthis.groupId;
@@ -48,6 +49,7 @@ public int getGroupId() {
48
49
/**
49
50
* @param groupId The group ID of the note. Groups are used in events to determine which notes are affected by an event. -1 means that the note is not in any group.
50
51
* @return this
52
+
* @implNote Not checked for in equals and hashCode, as it is only used for events and does not affect the sound of the note.
51
53
*/
52
54
publicNotesetGroupId(finalintgroupId) {
53
55
this.groupId = groupId;
@@ -219,12 +221,12 @@ public Note copy() {
219
221
publicbooleanequals(finalObjecto) {
220
222
if (o == null || getClass() != o.getClass()) returnfalse;
0 commit comments