mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Get rid of BlockContainer
This commit is contained in:
1 parent
19ed5877df
commit
3c5f588431
57 files changed
+347
-182
No files matched your search
@@ -29,7 +29,7 @@ import vazkii.botania.common.block.tile.TileCocoon;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockCocoon extends BlockModContainer implements ILexiconable {
|
||||
public class BlockCocoon extends BlockMod implements ILexiconable {
|
||||
|
||||
protected BlockCocoon() {
|
||||
super(Material.cloth);
|
||||
@@ -81,7 +81,12 @@ public class BlockCocoon extends BlockModContainer implements ILexiconable {
|
||||
}
|
||||
|
||||
@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 TileCocoon();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user