public class WorldBorderS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
WorldBorderS2CPacket.Type |
Modifier and Type | Field and Description |
---|---|
private double |
centerX |
private double |
centerZ |
private long |
interpolationDuration |
private double |
oldSize |
private int |
portalTeleportPosLimit |
private double |
size |
private WorldBorderS2CPacket.Type |
type |
private int |
warningBlocks |
private int |
warningTime |
Constructor and Description |
---|
WorldBorderS2CPacket() |
WorldBorderS2CPacket(WorldBorder border,
WorldBorderS2CPacket.Type type) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
void |
apply(WorldBorder border) |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private WorldBorderS2CPacket.Type type
private int portalTeleportPosLimit
private double centerX
private double centerZ
private double size
private double oldSize
private long interpolationDuration
private int warningTime
private int warningBlocks
public WorldBorderS2CPacket()
public WorldBorderS2CPacket(WorldBorder border, WorldBorderS2CPacket.Type type)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public void apply(WorldBorder border)