Recipe/docs for the hourglass.

This commit is contained in:
Lizbeth Rika committed 2015-05-30 16:40:09 +01:00
1 parent 4c52cd24e2
commit 1860539aee
5 files changed
+33 -1

No files matched your search

@@ -28,6 +28,8 @@ import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import vazkii.botania.api.internal.IManaBurst;
import vazkii.botania.api.internal.VanillaPacketDispatcher;
import vazkii.botania.api.lexicon.ILexiconable;
import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.api.mana.IManaTrigger;
import vazkii.botania.api.wand.IWandHUD;
import vazkii.botania.api.wand.IWandable;
@@ -35,9 +37,10 @@ import vazkii.botania.client.lib.LibRenderIDs;
import vazkii.botania.common.block.tile.TileHourglass;
import vazkii.botania.common.block.tile.TileSimpleInventory;
import vazkii.botania.common.item.ModItems;
import vazkii.botania.common.lexicon.LexiconData;
import vazkii.botania.common.lib.LibBlockNames;
public class BlockHourglass extends BlockModContainer implements IManaTrigger, IWandable, IWandHUD {
public class BlockHourglass extends BlockModContainer implements IManaTrigger, IWandable, IWandHUD, ILexiconable {
Random random;
@@ -195,5 +198,10 @@ public class BlockHourglass extends BlockModContainer implements IManaTrigger, I
TileHourglass tile = (TileHourglass) world.getTileEntity(x, y, z);
tile.renderHUD(res);
}
@Override
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
return LexiconData.hourglass;
}
}
@@ -260,6 +260,7 @@ public final class ModCraftingRecipes {
public static IRecipe recipeIncenseStick;
public static IRecipe recipeIncensePlate;
public static IRecipe recipeTerraAxe;
public static IRecipe recipeHourglass;
public static void init() {
// Lexicon Recipe
@@ -1737,6 +1738,15 @@ public final class ModCraftingRecipes {
'S', LibOreDict.LIVINGWOOD_TWIG);
recipeTerraAxe = BotaniaAPI.getLatestAddedRecipe();
// Hovering Hourglass Recipe
addOreDictRecipe(new ItemStack(ModBlocks.hourglass),
"GMG", "RSR", "GMG",
'G', "ingotGold",
'M', new ItemStack(ModBlocks.manaGlass),
'R', new ItemStack(Items.redstone),
'S', LibOreDict.MANA_STEEL);
recipeHourglass = BotaniaAPI.getLatestAddedRecipe();
// Storage Block Recipes
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
"III", "III", "III",
@@ -145,6 +145,7 @@ public final class LexiconData {
public static LexiconEntry flasks;
public static LexiconEntry complexBrews;
public static LexiconEntry incense;
public static LexiconEntry hourglass;
public static LexiconEntry manaBlaster;
public static LexiconEntry grassSeeds;
@@ -585,6 +586,9 @@ public final class LexiconData {
incense = new BLexiconEntry(LibLexicon.DEVICE_INCENSE, categoryDevices);
incense.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("5"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeIncenseStick), new PageCraftingRecipe("4", ModCraftingRecipes.recipeIncensePlate));
hourglass = new BLexiconEntry(LibLexicon.DEVICE_HOURGLASS, categoryDevices);
hourglass.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageCraftingRecipe("5", ModCraftingRecipes.recipeHourglass));
// TOOLS ENTRIES
manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools);
manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeManaBlaster));
@@ -117,6 +117,7 @@ public final class LibLexicon {
public static final String DEVICE_FLASKS = "flasks";
public static final String DEVICE_COMPLEX_BREWS = "complexBrews";
public static final String DEVICE_INCENSE = "incense";
public static final String DEVICE_HOURGLASS = "hourglass";
public static final String TOOL_MANA_BLASTER = "manaBlaster";
public static final String TOOL_GRASS_SEEDS = "grassSeeds";