mirror of https://github.com/Minestom/Minestom.git
parent
05de99f45f
commit
7794337ca7
|
@ -229,7 +229,7 @@ public class WorldBorder {
|
|||
*/
|
||||
@ApiStatus.Internal
|
||||
public void init(@NotNull Player player) {
|
||||
player.getPlayerConnection().sendPacket(new InitializeWorldBorderPacket(centerX, centerZ,
|
||||
player.sendPacket(new InitializeWorldBorderPacket(centerX, centerZ,
|
||||
oldDiameter, newDiameter, speed, portalTeleportBoundary, warningTime, warningBlocks));
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import net.minestom.server.utils.binary.BinaryReader;
|
|||
import net.minestom.server.utils.binary.BinaryWriter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public record OpenSignEditorPacket(Point position) implements ServerPacket {
|
||||
public record OpenSignEditorPacket(@NotNull Point position) implements ServerPacket {
|
||||
public OpenSignEditorPacket(BinaryReader reader) {
|
||||
this(reader.readBlockPosition());
|
||||
}
|
||||
|
|
|
@ -7,7 +7,8 @@ import net.minestom.server.utils.binary.BinaryReader;
|
|||
import net.minestom.server.utils.binary.BinaryWriter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public record OpenWindowPacket(int windowId, int windowType, Component title) implements ServerPacket {
|
||||
public record OpenWindowPacket(int windowId, int windowType,
|
||||
@NotNull Component title) implements ServerPacket {
|
||||
public OpenWindowPacket(BinaryReader reader) {
|
||||
this(reader.readVarInt(), reader.readVarInt(), reader.readComponent());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue