mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Effect Keys
This commit is contained in:
1 parent
0072369fca
commit
de0e425b87
3 files changed
+116
-101
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package noppes.npcs.controllers.data;
|
||||
|
||||
public class EffectKey {
|
||||
private final int id;
|
||||
private final int index;
|
||||
|
||||
public EffectKey(int key1, int key2) {
|
||||
this.id = key1;
|
||||
this.index = key2;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof EffectKey)) return false;
|
||||
EffectKey that = (EffectKey) o;
|
||||
return id == that.id && index == that.index;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 31 * id + index;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EffectKey{" + "key1=" + id + ", key2=" + index + '}';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user