Grasscutter/src/main/java/emu/grasscutter/server/event/game/SendPacketEvent.java
2022-04-28 22:13:19 -04:00

31 lines
813 B
Java

package emu.grasscutter.server.event.game;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.server.event.Cancellable;
import emu.grasscutter.server.event.types.ServerEvent;
import emu.grasscutter.server.game.GameSession;
public final class SendPacketEvent extends ServerEvent implements Cancellable {
private final GameSession gameSession;
private BasePacket packet;
public SendPacketEvent(GameSession gameSession, BasePacket packet) {
super(Type.GAME);
this.gameSession = gameSession;
this.packet = packet;
}
public GameSession getGameSession() {
return this.gameSession;
}
public void setPacket(BasePacket packet) {
this.packet = packet;
}
public BasePacket getPacket() {
return this.packet;
}
}