diff options
| author | bspkrs <bspkrs@gmail.com> | 2013-12-16 14:09:52 -0500 |
|---|---|---|
| committer | bspkrs <bspkrs@gmail.com> | 2013-12-16 14:09:52 -0500 |
| commit | 43ef55b2424eb49110e27d603adf95a84bf37560 (patch) | |
| tree | 44dc7e24ed6c66c8868123820eb036a2837d5f0c /common/darkknight/jewelrycraft/block/BlockMolder.java | |
| parent | 6c4d552878efb37c98dad381b6256cca95436e1c (diff) | |
fixed up adding ingots to rings
Diffstat (limited to 'common/darkknight/jewelrycraft/block/BlockMolder.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/block/BlockMolder.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockMolder.java b/common/darkknight/jewelrycraft/block/BlockMolder.java index 0003015..9d39afb 100644 --- a/common/darkknight/jewelrycraft/block/BlockMolder.java +++ b/common/darkknight/jewelrycraft/block/BlockMolder.java @@ -5,8 +5,6 @@ import java.util.Random; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.enchantment.Enchantment; -import net.minecraft.enchantment.EnchantmentData; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -43,7 +41,7 @@ public class BlockMolder extends BlockContainer @Override public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer entityPlayer, int par6, float par7, float par8, float par9) - { + { TileEntityMolder te = (TileEntityMolder) world.getBlockTileEntity(i, j, k); ItemStack item = entityPlayer.inventory.getCurrentItem(); if (te != null && item != null && !te.hasMold && item.itemID == ItemList.molds.itemID) @@ -63,7 +61,7 @@ public class BlockMolder extends BlockContainer @Override public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int par5) - { + { TileEntityMolder te = (TileEntityMolder) world.getBlockTileEntity(i, j, k); if (te != null) { @@ -105,11 +103,11 @@ public class BlockMolder extends BlockContainer @Override public void onBlockDestroyedByExplosion(World world, int i, int j, int k, Explosion par5Explosion) - { + { onBlockDestroyedByPlayer(world, i, j, k, 0); } - public void giveJewelToPlayer(TileEntityMolder md, EntityPlayer player, ItemStack item, String metal) + public void giveJewelToPlayer(TileEntityMolder md, EntityPlayer player, ItemStack item, ItemStack metal) { if (item != null) { @@ -123,7 +121,7 @@ public class BlockMolder extends BlockContainer @Override public void onBlockClicked(World world, int i, int j, int k, EntityPlayer player) - { + { TileEntityMolder me = (TileEntityMolder) world.getBlockTileEntity(i, j, k); if (me != null && me.hasJewelBase) { |
