public class NetworkSettingsPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
NetworkSettingsPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
NetworkSettingsPacket |
clone()
Creates a new instance of this packet using Object.clone()
Will throw a
UnsupportedOperationException if the packet implements ReferenceCounted |
boolean |
equals(java.lang.Object o) |
float |
getClientThrottleScalar() |
int |
getClientThrottleThreshold() |
PacketCompressionAlgorithm |
getCompressionAlgorithm()
Set the compression type to be used on the connection.
|
int |
getCompressionThreshold()
The smallest amount of bytes that should be compressed by the client.
|
BedrockPacketType |
getPacketType() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
boolean |
isClientThrottleEnabled()
Enable client throttling of players out of the threshold.
|
void |
setClientThrottleEnabled(boolean clientThrottleEnabled)
Enable client throttling of players out of the threshold.
|
void |
setClientThrottleScalar(float clientThrottleScalar) |
void |
setClientThrottleThreshold(int clientThrottleThreshold) |
void |
setCompressionAlgorithm(PacketCompressionAlgorithm compressionAlgorithm)
Set the compression type to be used on the connection.
|
void |
setCompressionThreshold(int compressionThreshold)
The smallest amount of bytes that should be compressed by the client.
|
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic NetworkSettingsPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic int getCompressionThreshold()
public PacketCompressionAlgorithm getCompressionAlgorithm()
public boolean isClientThrottleEnabled()
public int getClientThrottleThreshold()
public float getClientThrottleScalar()
public void setCompressionThreshold(int compressionThreshold)
public void setCompressionAlgorithm(PacketCompressionAlgorithm compressionAlgorithm)
public void setClientThrottleEnabled(boolean clientThrottleEnabled)
public void setClientThrottleThreshold(int clientThrottleThreshold)
public void setClientThrottleScalar(float clientThrottleScalar)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object