From 44faab995094bce70bc2ace3d1fed0f20c74d52a Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Sun, 18 Aug 2024 11:45:38 +0200 Subject: [PATCH] Added all args through lombok --- .../bausystem/features/tracer/TNTPoint.java | 25 +++---------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TNTPoint.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TNTPoint.java index 432241c2..1a34a684 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TNTPoint.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TNTPoint.java @@ -22,6 +22,7 @@ package de.steamwar.bausystem.features.tracer; import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.region.utils.RegionExtensionType; import de.steamwar.bausystem.region.utils.RegionType; +import lombok.AllArgsConstructor; import lombok.Getter; import org.bukkit.Bukkit; import org.bukkit.Location; @@ -40,6 +41,7 @@ import java.util.Optional; * Recording of a tnt at a specific tick */ @Getter +@AllArgsConstructor public class TNTPoint implements Externalizable { /** * Unique number to identify records being of the same tnt @@ -97,29 +99,8 @@ public class TNTPoint implements Externalizable { private List history; /** - * Constructor for deserialization only !! Do not Call !! + * Constructor for creating a new trace point in trace recording */ - protected TNTPoint(int tntId, boolean explosion, - boolean inWater, - boolean afterFirstExplosion, - boolean destroyedBuildArea, - boolean destroyedTestBlock, - long ticksSinceStart, - int fuse, - Location location, - Vector velocity) { - this.tntId = tntId; - this.explosion = explosion; - this.inWater = inWater; - this.afterFirstExplosion = afterFirstExplosion; - this.destroyedBuildArea = destroyedBuildArea; - this.destroyedTestBlock = destroyedTestBlock; - this.ticksSinceStart = ticksSinceStart; - this.fuse = fuse; - this.location = location; - this.velocity = velocity; - } - public TNTPoint(int tntId, TNTPrimed tnt, boolean explosion, boolean afterFirstExplosion, long ticksSinceStart, List history, List destroyedBlocks) { this.tntId = tntId;