Added lombok getters

Cleaned up some lines by using lombok.Getter
This commit is contained in:
J-onasJones 2023-09-26 23:28:06 +02:00
parent f4c6c6d22a
commit 3c73ed16a5
2 changed files with 7 additions and 29 deletions

View file

@ -19,7 +19,10 @@ repositories {
}
dependencies {
// To change the versions see the gradle.properties file
implementation 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

View file

@ -1,5 +1,8 @@
package me.jonasjones.betterconsolemc.util;
import lombok.Getter;
@Getter
public class CommandPreRegistry { //TODO: Add timeout before command can be ran again (unixtimestamp)
private Constants.CmdMode commandmode;
private String command;
@ -18,32 +21,4 @@ public class CommandPreRegistry { //TODO: Add timeout before command can be ran
this.execRerunTimeout = execRerunTimeout;
this.broadcastToOp = broadcastToOp;
}
public Constants.CmdMode getCommandmode() {
return this.commandmode;
}
public String getCommand() {
return this.command;
}
public int getPermissionLevel() {
return this.permissionLevel;
}
public int getExecTimeout() {
return this.execTimeout;
}
public String getIngamecommand() {
return this.ingamecommand;
}
public int getExecRerunTimeout() {
return this.execRerunTimeout;
}
public boolean doBroadcastToOp() {
return this.broadcastToOp;
}
}