Class ClientboundInitializeBorderPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundInitializeBorderPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final int
private final double
private final double
private final double
private final double
static final StreamCodec
<FriendlyByteBuf, ClientboundInitializeBorderPacket> private final int
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClientboundInitializeBorderPacket
(FriendlyByteBuf p_178879_) ClientboundInitializeBorderPacket
(WorldBorder p_178877_) -
Method Summary
Modifier and TypeMethodDescriptionlong
int
double
double
double
double
int
int
void
handle
(ClientGamePacketListener p_178885_) type()
private void
write
(FriendlyByteBuf p_178881_) 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.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
newCenterX
private final double newCenterX -
newCenterZ
private final double newCenterZ -
oldSize
private final double oldSize -
newSize
private final double newSize -
lerpTime
private final long lerpTime -
newAbsoluteMaxSize
private final int newAbsoluteMaxSize -
warningBlocks
private final int warningBlocks -
warningTime
private final int warningTime
-
-
Constructor Details
-
ClientboundInitializeBorderPacket
-
ClientboundInitializeBorderPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getNewCenterX
public double getNewCenterX() -
getNewCenterZ
public double getNewCenterZ() -
getNewSize
public double getNewSize() -
getOldSize
public double getOldSize() -
getLerpTime
public long getLerpTime() -
getNewAbsoluteMaxSize
public int getNewAbsoluteMaxSize() -
getWarningTime
public int getWarningTime() -
getWarningBlocks
public int getWarningBlocks()
-