public class ClientSettings extends DefinedPacket
| Constructor and Description |
|---|
ClientSettings() |
ClientSettings(String locale,
byte viewDistance,
int chatFlags,
boolean chatColours,
byte difficulty,
byte skinParts,
int mainHand) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
getChatFlags() |
byte |
getDifficulty() |
String |
getLocale() |
int |
getMainHand() |
byte |
getSkinParts() |
byte |
getViewDistance() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isChatColours() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setChatColours(boolean chatColours) |
void |
setChatFlags(int chatFlags) |
void |
setDifficulty(byte difficulty) |
void |
setLocale(String locale) |
void |
setMainHand(int mainHand) |
void |
setSkinParts(byte skinParts) |
void |
setViewDistance(byte viewDistance) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShortpublic ClientSettings()
public ClientSettings(String locale, byte viewDistance, int chatFlags, boolean chatColours, byte difficulty, byte skinParts, int mainHand)
public 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 getLocale()
public byte getViewDistance()
public int getChatFlags()
public boolean isChatColours()
public byte getDifficulty()
public byte getSkinParts()
public int getMainHand()
public void setLocale(String locale)
public void setViewDistance(byte viewDistance)
public void setChatFlags(int chatFlags)
public void setChatColours(boolean chatColours)
public void setDifficulty(byte difficulty)
public void setSkinParts(byte skinParts)
public void setMainHand(int mainHand)
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 © 2015–2019 WaterfallMC. All rights reserved.