Class ClientboundSetChunkCacheRadiusPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundSetChunkCacheRadiusPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetChunkCacheRadiusPacket(int viewDistance) ClientboundSetChunkCacheRadiusPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSetChunkCacheRadiusPacketwithViewDistance(int viewDistance) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundSetChunkCacheRadiusPacket
public ClientboundSetChunkCacheRadiusPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
ClientboundSetChunkCacheRadiusPacket
public ClientboundSetChunkCacheRadiusPacket(int viewDistance)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getViewDistance
public int getViewDistance() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withViewDistance
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-