Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(lombok): Say goodbye to lombok. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.pns</groupId>
<artifactId>SignAPI</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>SignAPI</name>
Expand Down Expand Up @@ -70,11 +70,5 @@
<version>4.7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>RELEASE</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
33 changes: 27 additions & 6 deletions src/main/java/dev/pns/signapi/SignTask.java
Original file line number Diff line number Diff line change
@@ -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;
}

}