get rid of ITileEntityProvider

This commit is contained in:
Raoul Van den Berge
2015-12-27 22:00:48 +01:00
parent 0d6087ca67
commit 62d3f0436c
13 changed files with 41 additions and 27 deletions

9
src/main/java/storagecraft/block/BlockCable.java Normal file → Executable file
View File

@@ -13,7 +13,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import storagecraft.tile.TileCable;
public class BlockCable extends BlockBase implements ITileEntityProvider
public class BlockCable extends BlockBase
{
public static final PropertyBool SENSITIVE = PropertyBool.create("sensitive");
@@ -45,8 +45,13 @@ public class BlockCable extends BlockBase implements ITileEntityProvider
}
@Override
public TileEntity createNewTileEntity(World world, int meta)
public boolean hasTileEntity(IBlockState state)
{
return true;
}
@Override
public TileEntity createTileEntity(World world, IBlockState state) {
return new TileCable();
}