mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 05:54:49 +00:00
Added the Alchemy Catalyst block, now to implement it.
This commit is contained in:
1 parent
aa48820817
commit
4bdad0e174
10 files changed
+65
No files matched your search
@@ -146,6 +146,12 @@ public final class BotaniaAPI {
|
||||
manaInfusionRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeManaInfusion registerManaAlchemyRecipe(ItemStack output, Object input, int mana) {
|
||||
RecipeManaInfusion recipe = registerManaInfusionRecipe(output, input, mana);
|
||||
recipe.setAlchemy(true);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static void registerSubTile(String key, Class<? extends SubTileEntity> subtileClass) {
|
||||
subTiles.put(key, subtileClass);
|
||||
|
||||
@@ -21,6 +21,7 @@ public class RecipeManaInfusion {
|
||||
ItemStack output;
|
||||
Object input;
|
||||
int mana;
|
||||
boolean isAlchemy = false;
|
||||
|
||||
public RecipeManaInfusion(ItemStack output, Object input, int mana) {
|
||||
this.output = output;
|
||||
@@ -41,6 +42,14 @@ public class RecipeManaInfusion {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setAlchemy(boolean alchemy) {
|
||||
isAlchemy = alchemy;
|
||||
}
|
||||
|
||||
public boolean isAlchemy() {
|
||||
return isAlchemy;
|
||||
}
|
||||
|
||||
public Object getInput() {
|
||||
return input;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under a
|
||||
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
||||
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
||||
*
|
||||
* File Created @ [May 2, 2014, 7:18:49 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.block;
|
||||
|
||||
import vazkii.botania.client.core.helper.IconHelper;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class BlockAlchemyCatalyst extends BlockMod {
|
||||
|
||||
IIcon[] icons;
|
||||
|
||||
public BlockAlchemyCatalyst() {
|
||||
super(Material.rock);
|
||||
setHardness(2.0F);
|
||||
setResistance(10.0F);
|
||||
setStepSound(Block.soundTypeStone);
|
||||
setBlockName(LibBlockNames.ALCHEMY_CATALYST);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister par1IconRegister) {
|
||||
icons = new IIcon[3];
|
||||
for(int i = 0; i < icons.length; i++)
|
||||
icons[i] = IconHelper.forBlock(par1IconRegister, this, i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int par1, int par2) {
|
||||
return icons[Math.min(2, par1)];
|
||||
}
|
||||
|
||||
}
|
||||
@@ -72,6 +72,7 @@ public final class ModBlocks {
|
||||
public static Block enchanter;
|
||||
public static Block turntable;
|
||||
public static Block tinyPlanet;
|
||||
public static Block alchemyCatalyst;
|
||||
|
||||
public static void init() {
|
||||
flower = new BlockModFlower();
|
||||
@@ -92,6 +93,7 @@ public final class ModBlocks {
|
||||
enchanter = new BlockEnchanter();
|
||||
turntable = new BlockTurntable();
|
||||
tinyPlanet = new BlockTinyPlanet();
|
||||
alchemyCatalyst = new BlockAlchemyCatalyst();
|
||||
|
||||
for(int i = 0; i < 16; i++)
|
||||
OreDictionary.registerOre(LibOreDict.FLOWER[i], new ItemStack(flower, 1, i));
|
||||
|
||||
@@ -103,6 +103,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
addItem(ModItems.manaTablet);
|
||||
addItem(ModItems.manaMirror);
|
||||
addBlock(ModBlocks.pool);
|
||||
addBlock(ModBlocks.alchemyCatalyst);
|
||||
addBlock(ModBlocks.distributor);
|
||||
addBlock(ModBlocks.manaVoid);
|
||||
addBlock(ModBlocks.manaDetector);
|
||||
|
||||
@@ -33,6 +33,7 @@ public final class LibBlockNames {
|
||||
public static final String ENCHANTER = LibResources.PREFIX_MOD + "enchanter";
|
||||
public static final String TURNTABLE = LibResources.PREFIX_MOD + "turntable";
|
||||
public static final String TINY_PLANET = LibResources.PREFIX_MOD + "tinyPlanetBlock";
|
||||
public static final String ALCHEMY_CATALYST = LibResources.PREFIX_MOD + "alchemyCatalyst";
|
||||
|
||||
public static final String SPECIAL_FLOWER_PREFIX = FLOWER + ".";
|
||||
|
||||
|
||||
@@ -125,6 +125,7 @@ tile.botania:manaDetector.name=Mana Detector
|
||||
tile.botania:enchanter.name=Mana Enchanter
|
||||
tile.botania:turntable.name=Spreader Turntable
|
||||
tile.botania:tinyPlanetBlock.name=Tiny Planet
|
||||
tile.botania:alchemyCatalyst.name=Alchemy Catalyst
|
||||
|
||||
# FLOWER NAMES
|
||||
tile.botania:flower..name=Botania Flower
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Reference in new issue
Block a user