Class LoginDisconnectS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.login.LoginDisconnectS2CPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
public class LoginDisconnectS2CPacket extends Object implements Packet<ClientLoginPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LoginDisconnectS2CPacket()
LoginDisconnectS2CPacket(Text reason)
-
Method Summary
Modifier and Type Method Description void
apply(ClientLoginPacketListener clientLoginPacketListener)
Text
getReason()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
reason
-
-
Constructor Details
-
LoginDisconnectS2CPacket
public LoginDisconnectS2CPacket() -
LoginDisconnectS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientLoginPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientLoginPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientLoginPacketListener>
-
getReason
-