public class ServerData extends DefinedPacket
| Constructor and Description |
|---|
ServerData() |
ServerData(String motd,
Object icon,
boolean preview,
boolean enforceSecure) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Object |
getIcon() |
String |
getMotd() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isEnforceSecure() |
boolean |
isPreview() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setEnforceSecure(boolean enforceSecure) |
void |
setIcon(Object icon) |
void |
setMotd(String motd) |
void |
setPreview(boolean preview) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShortpublic void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic String getMotd()
public Object getIcon()
public boolean isPreview()
public boolean isEnforceSecure()
public void setMotd(String motd)
public void setIcon(Object icon)
public void setPreview(boolean preview)
public void setEnforceSecure(boolean enforceSecure)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2012–2023 SpigotMC. All rights reserved.