added toString to MagicInteger
parent
7b3b4c9bbb
commit
acf2654031
|
@ -57,14 +57,21 @@ public class MagicEvent implements MagicCopyable {
|
|||
public MagicInteger(final int v) {
|
||||
value = v;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MagicCopyable copy(final MagicCopyMap copyMap) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return Integer.toString(value);
|
||||
}
|
||||
}
|
||||
|
||||
public static final MagicEvent NONE = new MagicEvent(NO_SOURCE, MagicPlayer.NONE, NO_REF, NO_ACTION, "") {
|
||||
|
|
Loading…
Reference in New Issue