Fixed TEBellJar calls (may need to be changed back again...)

This commit is contained in:
WayofTime committed 2015-07-30 20:50:48 -04:00
1 parent b5d9e3ee58
commit 1bd90ff01c
2 files changed
+14 -15

No files matched your search

@@ -3,7 +3,6 @@ package WayofTime.alchemicalWizardry.common.block;
import java.util.ArrayList;
import java.util.List;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
@@ -18,12 +17,13 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import WayofTime.alchemicalWizardry.ModBlocks;
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainer;
import WayofTime.alchemicalWizardry.common.tileEntity.TEBelljar;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
import WayofTime.alchemicalWizardry.common.tileEntity.TEBellJar;
public class BlockBelljar extends BlockContainer
{
@@ -77,12 +77,12 @@ public class BlockBelljar extends BlockContainer
{
TileEntity tile = world.getTileEntity(blockPos);
if (tile instanceof TEBelljar)
if (tile instanceof TEBellJar)
{
NBTTagCompound tag = stack.getTagCompound();
if (tag != null)
{
((TEBelljar) tile).readTankNBTOnPlace(tag);
((TEBellJar) tile).readTankNBTOnPlace(tag);
}
}
}
@@ -90,7 +90,7 @@ public class BlockBelljar extends BlockContainer
@Override
public TileEntity createNewTileEntity(World world, int meta)
{
return new TEBelljar();
return new TEBellJar();
}
@Override
@@ -121,9 +121,9 @@ public class BlockBelljar extends BlockContainer
public int getComparatorInputOverride(World world, BlockPos blockPos)
{
TileEntity tile = world.getTileEntity(blockPos);
if (tile instanceof TEBelljar)
if (tile instanceof TEBellJar)
{
return ((TEBelljar) tile).getRSPowerOutput();
return ((TEBellJar) tile).getRSPowerOutput();
}
return 15;
}
@@ -142,11 +142,11 @@ public class BlockBelljar extends BlockContainer
TileEntity tile = world.getTileEntity(blockPos);
if (tile instanceof TEBelljar)
if (tile instanceof TEBellJar)
{
ItemStack drop = new ItemStack(this);
NBTTagCompound tag = new NBTTagCompound();
((TEBelljar) tile).writeTankNBT(tag);
((TEBellJar) tile).writeTankNBT(tag);
drop.setTagCompound(tag);
list.add(drop);