mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Dandelifeon recipe/docs
This commit is contained in:
1 parent
519d75f3cd
commit
e62c3c4881
8 files changed
+49
-3
No files matched your search
@@ -13,17 +13,22 @@ package vazkii.botania.common.block;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.common.block.tile.TileCell;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockCell extends BlockModContainer {
|
||||
public class BlockCell extends BlockModContainer implements ILexiconable {
|
||||
|
||||
public BlockCell() {
|
||||
super(Material.gourd);
|
||||
setBlockName(LibBlockNames.CELL_BLOCK);
|
||||
setStepSound(soundTypeCloth);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -36,4 +41,9 @@ public class BlockCell extends BlockModContainer {
|
||||
return new TileCell();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.dandelifeon;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,10 +16,13 @@ import java.util.List;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.subtile.RadiusDescriptor;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.tile.TileCell;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibLexicon;
|
||||
|
||||
public class SubTileDandelifeon extends SubTileGenerating {
|
||||
|
||||
@@ -185,5 +188,10 @@ public class SubTileDandelifeon extends SubTileGenerating {
|
||||
public int getColor() {
|
||||
return 0x9c0a7e;
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry() {
|
||||
return LexiconData.dandelifeon;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -291,6 +291,7 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeBifrost;
|
||||
public static IRecipe recipeAutocraftingHalo;
|
||||
public static List<IRecipe> recipesPavement;
|
||||
public static IRecipe recipeCellBlock;
|
||||
|
||||
// Garden of Glass
|
||||
public static IRecipe recipeRootToSapling;
|
||||
@@ -1982,6 +1983,12 @@ public final class ModCraftingRecipes {
|
||||
addShapelessOreDictRecipe(new ItemStack(ModFluffBlocks.pavement, 3, 3), LibOreDict.LIVING_ROCK, "cobblestone", "gravel", new ItemStack(Items.redstone));
|
||||
recipesPavement = BotaniaAPI.getLatestAddedRecipes(4);
|
||||
|
||||
// Cellular Block Recipe
|
||||
GameRegistry.addRecipe(new ItemStack(ModBlocks.cellBlock, 3),
|
||||
"CC", "CC",
|
||||
'C', new ItemStack(Blocks.cactus));
|
||||
recipeCellBlock = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Storage Block/Nugget Recipes
|
||||
|
||||
@@ -30,6 +30,7 @@ public final class ModPetalRecipes {
|
||||
public static final String runeWater = LibOreDict.RUNE[0], runeFire = LibOreDict.RUNE[1], runeEarth = LibOreDict.RUNE[2], runeAir = LibOreDict.RUNE[3], runeSpring = LibOreDict.RUNE[4], runeSummer = LibOreDict.RUNE[5], runeAutumn = LibOreDict.RUNE[6], runeWinter = LibOreDict.RUNE[7], runeMana = LibOreDict.RUNE[8], runeLust = LibOreDict.RUNE[9], runeGluttony = LibOreDict.RUNE[10], runeGreed = LibOreDict.RUNE[11], runeSloth = LibOreDict.RUNE[12], runeWrath = LibOreDict.RUNE[13], runeEnvy = LibOreDict.RUNE[14], runePride = LibOreDict.RUNE[15];
|
||||
public static final String redstoneRoot = LibOreDict.REDSTONE_ROOT;
|
||||
public static final String pixieDust = LibOreDict.PIXIE_DUST;
|
||||
public static final String gaiaSpirit = LibOreDict.LIFE_ESSENCE;
|
||||
|
||||
public static RecipePetals pureDaisyRecipe;
|
||||
public static RecipePetals manastarRecipe;
|
||||
@@ -46,6 +47,7 @@ public final class ModPetalRecipes {
|
||||
public static RecipePetals gourmaryllisRecipe;
|
||||
public static RecipePetals narslimmusRecipe;
|
||||
public static RecipePetals spectrolusRecipe;
|
||||
public static RecipePetals dandelifeonRecipe;
|
||||
|
||||
public static RecipePetals jadedAmaranthusRecipe;
|
||||
public static RecipePetals bellethorneRecipe;
|
||||
@@ -89,7 +91,8 @@ public final class ModPetalRecipes {
|
||||
gourmaryllisRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_GOURMARYLLIS), lightGray, lightGrayMana, yellowMana, yellow, yellowMana, red, runeFire, runeSummer);
|
||||
narslimmusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_NARSLIMMUS), lime, limeMana, green, greenMana, black, runeSummer, runeWater);
|
||||
spectrolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_SPECTROLUS), redMana, orangeMana, yellowMana, greenMana, blueMana, cyanMana, purpleMana, white, runeWinter, runeAir, pixieDust);
|
||||
|
||||
dandelifeonRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_DANDELIFEON), purpleMana, purpleMana, limeMana, greenMana, runeWater, runeFire, runeEarth, runeAir, gaiaSpirit);
|
||||
|
||||
jadedAmaranthusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_JADED_AMARANTHUS), purpleMana, purpleMana, lime, purple, green, runeSpring, redstoneRoot);
|
||||
bellethorneRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_BELLETHORN), redMana, redMana, cyan, cyan, red, redstoneRoot);
|
||||
dreadthorneRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_DREADTHORN), blackMana, purpleMana, cyan, cyan, black, purple, redstoneRoot);
|
||||
|
||||
@@ -164,7 +164,7 @@ public class ItemManaResource extends ItemMod implements IFlowerComponent, IElve
|
||||
@Override
|
||||
public boolean canFit(ItemStack stack, IInventory apothecary) {
|
||||
int meta = stack.getItemDamage();
|
||||
return meta == 6 || meta == 8;
|
||||
return meta == 6 || meta == 8 || meta == 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -136,6 +136,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry gourmaryllis;
|
||||
public static LexiconEntry narslimmus;
|
||||
public static LexiconEntry spectrolus;
|
||||
public static LexiconEntry dandelifeon;
|
||||
|
||||
public static LexiconEntry pylon;
|
||||
public static LexiconEntry manaEnchanting;
|
||||
@@ -564,6 +565,9 @@ public final class LexiconData {
|
||||
spectrolus = new ALexiconEntry(LibLexicon.GFLOWER_SPECTROLUS, categoryGenerationFlowers);
|
||||
spectrolus.setLexiconPages(new PageText("0"), new PageText("1"), new PagePetalRecipe("2", ModPetalRecipes.spectrolusRecipe));
|
||||
|
||||
dandelifeon = new ALexiconEntry(LibLexicon.GFLOWER_DANDELIFEON, categoryGenerationFlowers);
|
||||
dandelifeon.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("5"), new PageText("6"), new PageText("7"), new PagePetalRecipe("8", ModPetalRecipes.dandelifeonRecipe), new PageCraftingRecipe("9", ModCraftingRecipes.recipeCellBlock));
|
||||
|
||||
// DEVICES ENTRIES
|
||||
pylon = new BLexiconEntry(LibLexicon.DEVICE_PYLON, categoryDevices);
|
||||
pylon.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipePylon));
|
||||
|
||||
@@ -104,6 +104,7 @@ public final class LibLexicon {
|
||||
public static final String GFLOWER_GOURMARYLLIS = "gourmaryllis";
|
||||
public static final String GFLOWER_NARSLIMMUS = "narslimmus";
|
||||
public static final String GFLOWER_SPECTROLUS = "spectrolus";
|
||||
public static final String GFLOWER_DANDELIFEON = "dandelifeon";
|
||||
|
||||
public static final String DEVICE_PYLON = "pylon";
|
||||
public static final String DEVICE_MANA_ENCHANTING = "manaEnchanting";
|
||||
|
||||
Reference in new issue
Block a user