public class ClientSettings extends DefinedPacket
Constructor and Description |
---|
ClientSettings() |
ClientSettings(String locale,
byte viewDistance,
int chatFlags,
boolean chatColours,
byte difficulty,
byte skinParts,
int mainHand,
boolean disableTextFiltering,
boolean allowServerListing) |
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 |
isAllowServerListing() |
boolean |
isChatColours() |
boolean |
isDisableTextFiltering() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setAllowServerListing(boolean allowServerListing) |
void |
setChatColours(boolean chatColours) |
void |
setChatFlags(int chatFlags) |
void |
setDifficulty(byte difficulty) |
void |
setDisableTextFiltering(boolean disableTextFiltering) |
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) |
expectedMaxLength, expectedMinLength, read, readArray, readArray, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
public ClientSettings()
public ClientSettings(String locale, byte viewDistance, int chatFlags, boolean chatColours, byte difficulty, byte skinParts, int mainHand, boolean disableTextFiltering, boolean allowServerListing)
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
read
in class DefinedPacket
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
write
in class DefinedPacket
public void handle(AbstractPacketHandler handler) throws Exception
handle
in class DefinedPacket
Exception
public String getLocale()
public byte getViewDistance()
public int getChatFlags()
public boolean isChatColours()
public byte getDifficulty()
public byte getSkinParts()
public int getMainHand()
public boolean isDisableTextFiltering()
public boolean isAllowServerListing()
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 void setDisableTextFiltering(boolean disableTextFiltering)
public void setAllowServerListing(boolean allowServerListing)
public String toString()
toString
in class DefinedPacket
public boolean equals(Object o)
equals
in class DefinedPacket
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class DefinedPacket
Copyright © 2019–2022. All rights reserved.