Class WorldBorderS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.WorldBorderS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class WorldBorderS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorldBorderS2CPacket.Type
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description WorldBorderS2CPacket()
WorldBorderS2CPacket(WorldBorder border, WorldBorderS2CPacket.Type type)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
void
apply(WorldBorder border)
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
type
-
portalTeleportPosLimit
private int portalTeleportPosLimit -
centerX
private double centerX -
centerZ
private double centerZ -
size
private double size -
oldSize
private double oldSize -
interpolationDuration
private long interpolationDuration -
warningTime
private int warningTime -
warningBlocks
private int warningBlocks
-
-
Constructor Details
-
WorldBorderS2CPacket
public WorldBorderS2CPacket() -
WorldBorderS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
apply
-