mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 08:44:02 +00:00
Recipe/docs for the petal blocks.
This commit is contained in:
1 parent
fc6ac83e04
commit
65942ce251
4 files changed
+21
-3
No files matched your search
@@ -17,15 +17,20 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.passive.EntitySheep;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.common.block.BlockMod;
|
||||
import vazkii.botania.common.item.block.ItemBlockWithMetadataAndName;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class BlockPetalBlock extends BlockMod {
|
||||
public class BlockPetalBlock extends BlockMod implements ILexiconable {
|
||||
|
||||
public BlockPetalBlock() {
|
||||
super(Material.plants);
|
||||
@@ -65,6 +70,10 @@ public class BlockPetalBlock extends BlockMod {
|
||||
public int damageDropped(int meta) {
|
||||
return meta;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.flowers;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -40,6 +40,7 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeLexicon;
|
||||
public static List<IRecipe> recipesPetals;
|
||||
public static List<IRecipe> recipesDyes;
|
||||
public static List<IRecipe> recipesPetalBlocks;
|
||||
public static IRecipe recipePestleAndMortar;
|
||||
public static List<IRecipe> recipesTwigWand;
|
||||
public static List<IRecipe> recipesApothecary;
|
||||
@@ -242,6 +243,13 @@ public final class ModCraftingRecipes {
|
||||
addShapelessOreDictRecipe(new ItemStack(ModItems.dye, 1, i), LibOreDict.PETAL[i], LibOreDict.PESTLE_AND_MORTAR);
|
||||
recipesDyes = BotaniaAPI.getLatestAddedRecipes(16);
|
||||
|
||||
// Petal Block Recipes
|
||||
for(int i = 0; i < 16; i++)
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.petalBlock, 1, i),
|
||||
"PPP", "PPP", "PPP", // PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
|
||||
'P', LibOreDict.PETAL[i]);
|
||||
recipesPetalBlocks = BotaniaAPI.getLatestAddedRecipes(16);
|
||||
|
||||
// Pestle and Mortar Recipe
|
||||
addOreDictRecipe(new ItemStack(ModItems.pestleAndMortar),
|
||||
" S", "W ", "B ",
|
||||
|
||||
@@ -237,7 +237,7 @@ public final class LexiconData {
|
||||
|
||||
flowers = new BLexiconEntry(LibLexicon.BASICS_FLOWERS, categoryBasics);
|
||||
flowers.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_FLOWERS), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipesPetals), new PageCraftingRecipe("4", ModCraftingRecipes.recipePestleAndMortar), new PageCraftingRecipe("5", ModCraftingRecipes.recipesDyes),
|
||||
new PageText("6"), new PageCraftingRecipe("7", ModCraftingRecipes.recipeFertilizerPowder), new PageCraftingRecipe("8", ModCraftingRecipes.recipeFerilizerDye));
|
||||
new PageText("6"), new PageCraftingRecipe("7", ModCraftingRecipes.recipeFertilizerPowder), new PageCraftingRecipe("8", ModCraftingRecipes.recipeFerilizerDye), new PageCraftingRecipe("9", ModCraftingRecipes.recipesPetalBlocks));
|
||||
|
||||
apothecary = new BLexiconEntry(LibLexicon.BASICS_APOTHECARY, categoryBasics);
|
||||
apothecary.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_APOTHECARY), new PageText("2"), new PageText("3"), new PageText("4"), new PageCraftingRecipe("5", ModCraftingRecipes.recipesApothecary));
|
||||
|
||||
Reference in new issue
Block a user