Painting the town: Adding Paintslinger API support

This commit is contained in:
ShadowFox committed 2015-10-21 09:10:02 -06:00
1 parent 8bc9f81860
commit ae6af3d182
4 files changed
+48 -12

No files matched your search

@@ -84,6 +84,7 @@ public final class BotaniaAPI {
public static Map<String, Integer> oreWeightsNether = new HashMap<String, Integer>();
public static Map<Item, Block> seeds = new HashMap();
public static Set<Item> looniumBlacklist = new LinkedHashSet();
public static Set<Block> paintableBlocks = new LinkedHashSet<Block>();
public static ArmorMaterial manasteelArmorMaterial = EnumHelper.addArmorMaterial("MANASTEEL", 16, new int[] { 2, 6, 5, 2 }, 18);
public static ToolMaterial manasteelToolMaterial = EnumHelper.addToolMaterial("MANASTEEL", 3, 300, 6.2F, 2F, 20);
@@ -228,6 +229,12 @@ public final class BotaniaAPI {
registerModWiki("GanysSurface", new SimpleWikiProvider("Gany's Surface Wiki", "http://ganys-surface.wikia.com/wiki/%s"));
registerModWiki("GanysNether", new SimpleWikiProvider("Gany's Nether Wiki", "http://ganys-nether.wikia.com/wiki/%s"));
registerModWiki("GanysEnd", new SimpleWikiProvider("Gany's End Wiki", "http://ganys-end.wikia.com/wiki/%s"));
registerPaintableBlock(Blocks.stained_glass);
registerPaintableBlock(Blocks.stained_glass_pane);
registerPaintableBlock(Blocks.stained_hardened_clay);
registerPaintableBlock(Blocks.wool);
registerPaintableBlock(Blocks.carpet);
}
/**
@@ -267,6 +274,14 @@ public final class BotaniaAPI {
return fallbackBrew;
}
/**
* Registers a paintableBlock and returns it.
*/
public static Block registerPaintableBlock(Block paintable){
paintableBlocks.add(paintable);
return paintable;
}
/**
* Registers a Petal Recipe.
* @param output The ItemStack to craft.