Clean up tab completion code for repeated statements

This commit is contained in:
libraryaddict
2019-02-18 18:52:54 +13:00
parent b813c5b899
commit 2cf86b9cd8
12 changed files with 191 additions and 501 deletions

View File

@@ -12,6 +12,7 @@ import java.util.Objects;
public class DisguisePerm {
private DisguiseType disguiseType;
private String permName;
private boolean customDisguise;
public DisguisePerm(DisguiseType disguiseType) {
this.disguiseType = disguiseType;
@@ -20,6 +21,11 @@ public class DisguisePerm {
public DisguisePerm(DisguiseType disguiseType, String disguisePerm) {
this.disguiseType = disguiseType;
permName = disguisePerm;
customDisguise = true;
}
public boolean isCustomDisguise() {
return customDisguise;
}
public Class getEntityClass() {