!FINAL FIELDS

This commit is contained in:
Jules 2020-07-30 10:04:38 +02:00
parent 5213383819
commit 2578a15f32

View File

@ -20,11 +20,11 @@ import net.mmogroup.mmolib.api.MMOLineConfig;
public abstract class Recipe {
private final String id;
private Map<RecipeOption, Boolean> options = new HashMap<>();
private final Map<RecipeOption, Boolean> options = new HashMap<>();
private Set<Ingredient> ingredients = new LinkedHashSet<>();
private Set<Condition> conditions = new LinkedHashSet<>();
private Set<Trigger> triggers = new LinkedHashSet<>();
private final Set<Ingredient> ingredients = new LinkedHashSet<>();
private final Set<Condition> conditions = new LinkedHashSet<>();
private final Set<Trigger> triggers = new LinkedHashSet<>();
public Recipe(ConfigurationSection config) {
this(config.getName());
@ -147,7 +147,7 @@ public abstract class Recipe {
public enum RecipeOption {
HIDE_WHEN_LOCKED;
private boolean def;
private final boolean def;
private RecipeOption() {
this(false);