From e4c2b05e4f7fc4dc89a3bd57eabad5c2faebbab4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 7 Apr 2023 22:28:44 +0200 Subject: [PATCH] Add RequestSchematicSearchPacket --- .../packets/client/ImALobbyPacket.java | 1 - .../client/RequestSchematicSearchPacket.java | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/de/steamwar/network/packets/client/RequestSchematicSearchPacket.java diff --git a/src/de/steamwar/network/packets/client/ImALobbyPacket.java b/src/de/steamwar/network/packets/client/ImALobbyPacket.java index d8e1ba4..dcd07dd 100644 --- a/src/de/steamwar/network/packets/client/ImALobbyPacket.java +++ b/src/de/steamwar/network/packets/client/ImALobbyPacket.java @@ -21,7 +21,6 @@ package de.steamwar.network.packets.client; import de.steamwar.network.packets.NetworkPacket; import lombok.EqualsAndHashCode; -import lombok.Getter; @EqualsAndHashCode(callSuper = true) public class ImALobbyPacket extends NetworkPacket { diff --git a/src/de/steamwar/network/packets/client/RequestSchematicSearchPacket.java b/src/de/steamwar/network/packets/client/RequestSchematicSearchPacket.java new file mode 100644 index 0000000..ea8420c --- /dev/null +++ b/src/de/steamwar/network/packets/client/RequestSchematicSearchPacket.java @@ -0,0 +1,39 @@ +/* + * This file is a part of the SteamWar software. + * + * Copyright (C) 2023 SteamWar.de-Serverteam + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package de.steamwar.network.packets.client; + +import de.steamwar.network.packets.NetworkPacket; +import lombok.*; + +@Builder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = true) +@Getter +public class RequestSchematicSearchPacket extends NetworkPacket { + private static final long serialVersionUID = -6525229932332581648L; + + private int playerId; + private int schematicId; + private boolean ignoreBlockData; + private boolean ignoreAir; + private boolean airAsAny; + +}