blob: 94b291c312762ef8986c835d9fe7554aa4c935b1 (
plain)
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
|
package ru.olamedia.olacraft.events;
public class GameEvent {
public static int GAME_START = GameEventRegistry.get("game.start");
public static int PLAYER_SPAWN = GameEventRegistry.get("player.spawn");
private Object source;
private int type;
public GameEvent(Object source) {
this.setSource(source);
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public Object getSource() {
return source;
}
public void setSource(Object source) {
this.source = source;
}
public void dispatch() {
GameEventDispatcher.dispatch(this);
}
}
|