public class GameStateChangeS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
GameStateChangeS2CPacket.Reason |
Modifier and Type | Field and Description |
---|---|
static GameStateChangeS2CPacket.Reason |
DEMO_MESSAGE_SHOWN |
static GameStateChangeS2CPacket.Reason |
ELDER_GUARDIAN_EFFECT |
static GameStateChangeS2CPacket.Reason |
GAME_MODE_CHANGED |
static GameStateChangeS2CPacket.Reason |
GAME_WON |
static GameStateChangeS2CPacket.Reason |
IMMEDIATE_RESPAWN |
static GameStateChangeS2CPacket.Reason |
NO_RESPAWN_BLOCK |
static GameStateChangeS2CPacket.Reason |
PROJECTILE_HIT_PLAYER |
static GameStateChangeS2CPacket.Reason |
PUFFERFISH_STING |
static GameStateChangeS2CPacket.Reason |
RAIN_GRADIENT_CHANGED |
static GameStateChangeS2CPacket.Reason |
RAIN_STARTED |
static GameStateChangeS2CPacket.Reason |
RAIN_STOPPED |
private GameStateChangeS2CPacket.Reason |
reason |
static GameStateChangeS2CPacket.Reason |
THUNDER_GRADIENT_CHANGED |
private float |
value |
Constructor and Description |
---|
GameStateChangeS2CPacket() |
GameStateChangeS2CPacket(GameStateChangeS2CPacket.Reason reason,
float value) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
GameStateChangeS2CPacket.Reason |
getReason() |
float |
getValue() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public static final GameStateChangeS2CPacket.Reason NO_RESPAWN_BLOCK
public static final GameStateChangeS2CPacket.Reason RAIN_STARTED
public static final GameStateChangeS2CPacket.Reason RAIN_STOPPED
public static final GameStateChangeS2CPacket.Reason GAME_MODE_CHANGED
public static final GameStateChangeS2CPacket.Reason GAME_WON
public static final GameStateChangeS2CPacket.Reason DEMO_MESSAGE_SHOWN
public static final GameStateChangeS2CPacket.Reason PROJECTILE_HIT_PLAYER
public static final GameStateChangeS2CPacket.Reason RAIN_GRADIENT_CHANGED
public static final GameStateChangeS2CPacket.Reason THUNDER_GRADIENT_CHANGED
public static final GameStateChangeS2CPacket.Reason PUFFERFISH_STING
public static final GameStateChangeS2CPacket.Reason ELDER_GUARDIAN_EFFECT
public static final GameStateChangeS2CPacket.Reason IMMEDIATE_RESPAWN
private GameStateChangeS2CPacket.Reason reason
private float value
public GameStateChangeS2CPacket()
public GameStateChangeS2CPacket(GameStateChangeS2CPacket.Reason reason, float value)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public GameStateChangeS2CPacket.Reason getReason()
@Environment(value=CLIENT) public float getValue()