forked from SteamWar/SteamWar
Added all args through lombok
This commit is contained in:
@@ -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<TNTPoint> 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<TNTPoint> history, List<Block> destroyedBlocks) {
|
||||
this.tntId = tntId;
|
||||
|
||||
Reference in New Issue
Block a user