Grasscutter/src/main/java/emu/grasscutter/server/event/game/SendPacketEvent.java

31 lines
813 B
Java
Raw Normal View History

2022-04-23 06:08:31 +00:00
package emu.grasscutter.server.event.game;
import emu.grasscutter.net.packet.BasePacket;
2022-04-23 06:08:31 +00:00
import emu.grasscutter.server.event.Cancellable;
2022-04-29 02:13:19 +00:00
import emu.grasscutter.server.event.types.ServerEvent;
2022-04-23 06:08:31 +00:00
import emu.grasscutter.server.game.GameSession;
public final class SendPacketEvent extends ServerEvent implements Cancellable {
private final GameSession gameSession;
private BasePacket packet;
2022-04-23 06:08:31 +00:00
public SendPacketEvent(GameSession gameSession, BasePacket packet) {
2022-04-23 06:08:31 +00:00
super(Type.GAME);
this.gameSession = gameSession;
this.packet = packet;
}
public GameSession getGameSession() {
return this.gameSession;
}
public void setPacket(BasePacket packet) {
2022-04-23 06:08:31 +00:00
this.packet = packet;
}
public BasePacket getPacket() {
2022-04-23 06:08:31 +00:00
return this.packet;
}
}