Grasscutter/src/main/java/emu/grasscutter/server/event/ServerEvent.java

22 lines
399 B
Java
Raw Normal View History

2022-04-23 13:58:37 +08:00
package emu.grasscutter.server.event;
/**
* An event that is related to the internals of the server.
*/
public abstract class ServerEvent extends Event {
protected final Type type;
public ServerEvent(Type type) {
this.type = type;
}
2022-04-26 14:07:00 +08:00
public Type getServerType() {
return this.type;
}
2022-04-23 13:58:37 +08:00
public enum Type {
DISPATCH,
GAME
}
}