Implemented Custom Model Data

issue #246
This commit is contained in:
Sn0wStorm
2020-04-12 22:21:17 +02:00
parent ef868fc7eb
commit 8f7696cdb5
14 changed files with 172 additions and 19 deletions
@@ -31,6 +31,7 @@ public class BCauldronRecipe {
//private List<String> particles
private PotionColor color;
private List<String> lore;
private int cmData; // Custom Model Data
private boolean saveInData; // If this recipe should be saved in data and loaded again when the server restarts. Applicable to non-config recipes
@@ -83,6 +84,8 @@ public class BCauldronRecipe {
recipe.lore = lore.stream().map(Tuple::second).collect(Collectors.toList());
}
recipe.cmData = cfg.getInt(id + ".customModelData", 0);
return recipe;
}
@@ -131,6 +134,13 @@ public class BCauldronRecipe {
this.lore = lore;
}
/**
* Get the Custom Model Data
*/
public int getCmData() {
return cmData;
}
public void setSaveInData(boolean saveInData) {
this.saveInData = saveInData;
}