🎨 Update @Getter

Dieser Commit ist enthalten in:
Chaoscaot 2022-05-03 15:43:16 +02:00
Ursprung 82a5679818
Commit d5ed6abcad
11 geänderte Dateien mit 15 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -21,6 +21,7 @@ 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 {

Datei anzeigen

@ -26,6 +26,7 @@ import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class InventoryCallbackPacket extends NetworkPacket {
private static final long serialVersionUID = -261823209186008718L;
@Builder.Default

Datei anzeigen

@ -22,11 +22,13 @@ package de.steamwar.network.packets.client;
import de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class PrepareSchemPacket extends NetworkPacket {
private static final long serialVersionUID = -4798561188105813349L;

Datei anzeigen

@ -28,6 +28,7 @@ import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class FightEndsPacket extends NetworkPacket {
private static final long serialVersionUID = 1279352415549011332L;

Datei anzeigen

@ -28,6 +28,7 @@ import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class FightInfoPacket extends NetworkPacket {
private static final long serialVersionUID = 7448644597856605853L;

Datei anzeigen

@ -20,10 +20,8 @@
package de.steamwar.network.packets.server;
import de.steamwar.network.packets.NetworkPacket;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class BaumemberUpdatePacket extends NetworkPacket {
private static final long serialVersionUID = 6863118892424244051L;

Datei anzeigen

@ -22,11 +22,13 @@ package de.steamwar.network.packets.server;
import de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class CloseInventoryPacket extends NetworkPacket {
private static final long serialVersionUID = -2191021190060504521L;

Datei anzeigen

@ -22,6 +22,7 @@ package de.steamwar.network.packets.server;
import de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.Map;
@ -29,6 +30,7 @@ import java.util.Map;
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class InventoryPacket extends NetworkPacket {
private static final long serialVersionUID = 8071052544654047316L;

Datei anzeigen

@ -22,11 +22,13 @@ package de.steamwar.network.packets.server;
import de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class PingPacket extends NetworkPacket {
private static final long serialVersionUID = 714647343959550378L;
private int id;

Datei anzeigen

@ -22,11 +22,13 @@ package de.steamwar.network.packets.server;
import de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Getter
public class StartingServerPacket extends NetworkPacket {
private static final long serialVersionUID = 2808607245898121801L;
private int user;

Datei anzeigen

@ -30,7 +30,6 @@ import de.steamwar.network.packets.server.*;
import lombok.SneakyThrows;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.util.List;
@ -69,6 +68,7 @@ public class AllPackets {
Parameter[] parameters = longConstructor.getParameters();
for (int i = 0; i < parameters.length; i++) {
Parameter parameter = parameters[i];
parameter.getName();
args[i] = generateRandom(parameter.getType());
}