mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-04 20:11:49 +00:00
31 lines
813 B
Java
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;
|
|
}
|
|
}
|