public class GameStateChangeS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private int |
reason |
static String[] |
REASON_MESSAGES |
private float |
value |
| Constructor and Description |
|---|
GameStateChangeS2CPacket() |
GameStateChangeS2CPacket(int reason,
float value) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getReason() |
float |
getValue() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippablepublic static final String[] REASON_MESSAGES
private int reason
private float value
public GameStateChangeS2CPacket()
public GameStateChangeS2CPacket(int reason,
float value)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public int getReason()
@Environment(value=CLIENT) public float getValue()