public class LoginDisconnectS2CPacket extends Object implements Packet<ClientLoginPacketListener>
| Constructor and Description |
|---|
LoginDisconnectS2CPacket() |
LoginDisconnectS2CPacket(Text reason) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientLoginPacketListener clientLoginPacketListener) |
Text |
getReason() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate Text reason
public LoginDisconnectS2CPacket()
public LoginDisconnectS2CPacket(Text reason)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientLoginPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientLoginPacketListener>IOExceptionpublic void apply(ClientLoginPacketListener clientLoginPacketListener)
apply in interface Packet<ClientLoginPacketListener>@Environment(value=CLIENT) public Text getReason()