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 classWorldBorderS2CPacket.Type -
Field Summary
Fields Modifier and Type Field Description private doublecenterXprivate doublecenterZprivate longinterpolationDurationprivate doubleoldSizeprivate intportalTeleportPosLimitprivate doublesizeprivate WorldBorderS2CPacket.Typetypeprivate intwarningBlocksprivate intwarningTime -
Constructor Summary
Constructors Constructor Description WorldBorderS2CPacket()WorldBorderS2CPacket(WorldBorder border, WorldBorderS2CPacket.Type type) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)voidapply(WorldBorder border)voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
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:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
apply
-