Class ClientboundSetBorderWarningDistancePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetBorderWarningDistancePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSetBorderWarningDistancePacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClientboundSetBorderWarningDistancePacket(WorldBorder worldBorder) -
Method Summary
Modifier and TypeMethodDescriptionintvoidhandle(ClientGamePacketListener handler) Passes this Packet on to the PacketListener for processing.type()private voidwrite(FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<FriendlyByteBuf,ClientboundSetBorderWarningDistancePacket> STREAM_CODEC -
warningBlocks
private final int warningBlocks
-
-
Constructor Details
-
ClientboundSetBorderWarningDistancePacket
-
ClientboundSetBorderWarningDistancePacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getWarningBlocks
public int getWarningBlocks()
-