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
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprivate
ClientboundInitializeBorderPacket
(WorldBorder pWorldBorder) -
Method Summary
Modifier and TypeMethodDescriptionlong
int
double
double
double
double
int
int
void
handle
(ClientGamePacketListener p_178885_) Passes this Packet on to the PacketListener for processing.type()
private void
write
(FriendlyByteBuf pBuffer) 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
Description copied from interface:Packet
Passes this Packet on to the PacketListener for processing.- 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()
-