mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Recipe/docs for the Spark Tinkerer.
This commit is contained in:
1 parent
3d1212bd8e
commit
98bf5306db
7 files changed
+33
-2
No files matched your search
@@ -23,15 +23,18 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
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.client.core.helper.IconHelper;
|
||||
import vazkii.botania.common.block.tile.TileSimpleInventory;
|
||||
import vazkii.botania.common.block.tile.TileSparkChanger;
|
||||
import vazkii.botania.common.block.tile.TileTerraPlate;
|
||||
import vazkii.botania.common.block.tile.string.TileRedStringDispenser;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockSparkChanger extends BlockModContainer {
|
||||
public class BlockSparkChanger extends BlockModContainer implements ILexiconable {
|
||||
|
||||
IIcon[] icons;
|
||||
Random random;
|
||||
@@ -156,5 +159,10 @@ public class BlockSparkChanger extends BlockModContainer {
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileSparkChanger();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.sparkChanger;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
package vazkii.botania.common.block.tile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -52,6 +53,9 @@ public class TileSparkChanger extends TileSimpleInventory {
|
||||
ItemStack sparkStack = upg == 0 ? null : new ItemStack(ModItems.sparkUpgrade, 1, upg - 1);
|
||||
int newUpg = changeStack == null ? 0 : changeStack.getItemDamage() + 1;
|
||||
spark.setUpgrade(newUpg);
|
||||
Collection transfers = spark.getTransfers();
|
||||
if(transfers != null)
|
||||
transfers.clear();
|
||||
setInventorySlotContents(0, sparkStack);
|
||||
markDirty();
|
||||
}
|
||||
|
||||
@@ -263,6 +263,7 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeHourglass;
|
||||
public static IRecipe recipeGhostRail;
|
||||
public static IRecipe recipeCanopyDrum;
|
||||
public static IRecipe recipeSparkChanger;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1765,6 +1766,14 @@ public final class ModCraftingRecipes {
|
||||
'H', new ItemStack(ModItems.grassHorn, 1, 1));
|
||||
recipeCanopyDrum = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Spark Changer Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.sparkChanger),
|
||||
"ESE", "SRS",
|
||||
'S', LibOreDict.LIVING_ROCK,
|
||||
'E', LibOreDict.ELEMENTIUM,
|
||||
'R', new ItemStack(Items.redstone));
|
||||
recipeSparkChanger = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Storage Block/Nugget Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -318,7 +318,6 @@ public class EntitySpark extends Entity implements ISparkEntity {
|
||||
@Override
|
||||
public Collection<ISparkEntity> getTransfers() {
|
||||
Collection<ISparkEntity> removals = new ArrayList();
|
||||
new NBTTagList();
|
||||
|
||||
for(ISparkEntity e : transfers) {
|
||||
ISparkEntity spark = e;
|
||||
|
||||
@@ -89,6 +89,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry rfGenerator;
|
||||
public static LexiconEntry prism;
|
||||
public static LexiconEntry poolCart;
|
||||
public static LexiconEntry sparkChanger;
|
||||
|
||||
public static LexiconEntry functionalIntro;
|
||||
public static LexiconEntry flowerShrinking;
|
||||
@@ -398,6 +399,9 @@ public final class LexiconData {
|
||||
poolCart = new BLexiconEntry(LibLexicon.MANA_POOL_CART, categoryMana);
|
||||
poolCart.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipePoolCart), new PageCraftingRecipe("4", ModCraftingRecipes.recipePump));
|
||||
|
||||
sparkChanger = new ALexiconEntry(LibLexicon.MANA_SPARK_CHANGER, categoryMana);
|
||||
sparkChanger.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeSparkChanger));
|
||||
|
||||
// FUNCTIONAL FLOWERS ENTRIES
|
||||
functionalIntro = new BLexiconEntry(LibLexicon.FFLOWER_INTRO, categoryFunctionalFlowers);
|
||||
functionalIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageCraftingRecipe("4", ModCraftingRecipes.recipeRedstoneRoot)).setIcon(null);;
|
||||
|
||||
@@ -59,6 +59,7 @@ public final class LibLexicon {
|
||||
public static final String MANA_SPARK_UPGRADES = "sparkUpgrades";
|
||||
public static final String MANA_PRISM = "prism";
|
||||
public static final String MANA_POOL_CART = "poolCart";
|
||||
public static final String MANA_SPARK_CHANGER = "sparkChanger";
|
||||
|
||||
public static final String FFLOWER_INTRO = "fIntro";
|
||||
public static final String FFLOWER_SHRINKING = "flowerShrinking";
|
||||
|
||||
Reference in new issue
Block a user