Added author storage.
This commit is contained in:
parent
7b2a24217c
commit
552e16e115
|
@ -20,6 +20,7 @@ import java.util.Set;
|
|||
import static com.songoda.epicenchants.utils.single.GeneralUtils.color;
|
||||
|
||||
public class Enchant {
|
||||
private String author;
|
||||
private String identifier;
|
||||
private Group group;
|
||||
private int maxLevel;
|
||||
|
@ -30,7 +31,8 @@ public class Enchant {
|
|||
private String format;
|
||||
@Nullable private BookItem bookItem;
|
||||
|
||||
Enchant(String identifier, Group group, int maxLevel, Set<String> conflict, Set<Material> itemWhitelist, Set<EffectExecutor> effectExecutors, List<String> description, String format, BookItem bookItem) {
|
||||
Enchant(String author, String identifier, Group group, int maxLevel, Set<String> conflict, Set<Material> itemWhitelist, Set<EffectExecutor> effectExecutors, List<String> description, String format, BookItem bookItem) {
|
||||
this.author = author;
|
||||
this.identifier = identifier;
|
||||
this.group = group;
|
||||
this.maxLevel = maxLevel;
|
||||
|
@ -65,6 +67,10 @@ public class Enchant {
|
|||
return color(output);
|
||||
}
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public String getIdentifier() {
|
||||
return this.identifier;
|
||||
}
|
||||
|
@ -103,6 +109,7 @@ public class Enchant {
|
|||
}
|
||||
|
||||
public static class EnchantBuilder {
|
||||
private String author;
|
||||
private String identifier;
|
||||
private Group group;
|
||||
private int maxLevel;
|
||||
|
@ -116,6 +123,11 @@ public class Enchant {
|
|||
EnchantBuilder() {
|
||||
}
|
||||
|
||||
public Enchant.EnchantBuilder author(String author) {
|
||||
this.author = author;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Enchant.EnchantBuilder identifier(String identifier) {
|
||||
this.identifier = identifier;
|
||||
return this;
|
||||
|
@ -162,7 +174,7 @@ public class Enchant {
|
|||
}
|
||||
|
||||
public Enchant build() {
|
||||
return new Enchant(identifier, group, maxLevel, conflict, itemWhitelist, effectExecutors, description, format, bookItem);
|
||||
return new Enchant(author, identifier, group, maxLevel, conflict, itemWhitelist, effectExecutors, description, format, bookItem);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
|
|
|
@ -21,10 +21,7 @@ applied-format: "&cInquistive {level}"
|
|||
# What items this enchant can be applied too.
|
||||
item-whitelist:
|
||||
- "SWORDS"
|
||||
|
||||
# This enchantment can not be applied if then enchantment below is already on the item.
|
||||
conflicting-enchants:
|
||||
|
||||
|
||||
# For a full list of effects, please visit: https://wiki.songoda.com/display/SON/EpicEnchants
|
||||
effects:
|
||||
MODIFY_EXP:
|
Loading…
Reference in New Issue