🎨 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 de.steamwar.network.packets.NetworkPacket;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.Getter;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class ImALobbyPacket extends NetworkPacket { public class ImALobbyPacket extends NetworkPacket {

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

@ -20,10 +20,8 @@
package de.steamwar.network.packets.server; package de.steamwar.network.packets.server;
import de.steamwar.network.packets.NetworkPacket; import de.steamwar.network.packets.NetworkPacket;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class BaumemberUpdatePacket extends NetworkPacket { public class BaumemberUpdatePacket extends NetworkPacket {
private static final long serialVersionUID = 6863118892424244051L; 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 de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Getter
public class CloseInventoryPacket extends NetworkPacket { public class CloseInventoryPacket extends NetworkPacket {
private static final long serialVersionUID = -2191021190060504521L; 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 de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.util.Map; import java.util.Map;
@ -29,6 +30,7 @@ import java.util.Map;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Getter
public class InventoryPacket extends NetworkPacket { public class InventoryPacket extends NetworkPacket {
private static final long serialVersionUID = 8071052544654047316L; 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 de.steamwar.network.packets.NetworkPacket;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Getter
public class PingPacket extends NetworkPacket { public class PingPacket extends NetworkPacket {
private static final long serialVersionUID = 714647343959550378L; private static final long serialVersionUID = 714647343959550378L;
private int id; private int id;

Datei anzeigen

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

Datei anzeigen

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