Class ClientboundSetBorderCenterPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.border.ClientboundSetBorderCenterPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetBorderCenterPacket(double newCenterX, double newCenterZ) ClientboundSetBorderCenterPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleandoubledoubleinthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSetBorderCenterPacketwithNewCenterX(double newCenterX) @NonNull ClientboundSetBorderCenterPacketwithNewCenterZ(double newCenterZ) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetBorderCenterPacket
public ClientboundSetBorderCenterPacket(io.netty.buffer.ByteBuf in) -
ClientboundSetBorderCenterPacket
public ClientboundSetBorderCenterPacket(double newCenterX, double newCenterZ)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getNewCenterX
public double getNewCenterX() -
getNewCenterZ
public double getNewCenterZ() -
equals
-
canEqual
-
hashCode
-
toString
-
withNewCenterX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNewCenterZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-