From 402bae88a1611fa726b36cf07ee33c4d9d404ecc Mon Sep 17 00:00:00 2001 From: carm Date: Tue, 25 Jul 2023 02:06:44 +0800 Subject: [PATCH] style(lombok): Say goodbye to lombok. --- pom.xml | 8 +---- src/main/java/dev/pns/signapi/SignTask.java | 33 +++++++++++++++++---- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/pom.xml b/pom.xml index 605de31..24d06a4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.pns SignAPI - 1.1-SNAPSHOT + 1.2-SNAPSHOT jar SignAPI @@ -70,11 +70,5 @@ 4.7.0 provided - - org.projectlombok - lombok - RELEASE - compile - diff --git a/src/main/java/dev/pns/signapi/SignTask.java b/src/main/java/dev/pns/signapi/SignTask.java index 0109d78..e1e3c7e 100644 --- a/src/main/java/dev/pns/signapi/SignTask.java +++ b/src/main/java/dev/pns/signapi/SignTask.java @@ -1,17 +1,38 @@ package dev.pns.signapi; -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import lombok.Setter; import org.bukkit.block.Block; import org.bukkit.entity.Player; -@Getter -@RequiredArgsConstructor public class SignTask { private final Player player; private final SignGUI.onClose onClose; private final Block block; - @Setter private String[] lines; + + public SignTask(Player player, SignGUI.onClose onClose, Block block) { + this.player = player; + this.onClose = onClose; + this.block = block; + } + + public Player getPlayer() { + return player; + } + + public SignGUI.onClose getOnClose() { + return onClose; + } + + public Block getBlock() { + return block; + } + + public String[] getLines() { + return lines; + } + + public void setLines(String[] lines) { + this.lines = lines; + } + }