Removed IDomDoor's seemingly useless initDoorTE method
This commit is contained in:
parent
2b9ca1c7da
commit
03a7fd1b47
3 changed files with 0 additions and 16 deletions
|
@ -213,13 +213,6 @@ public abstract class BlockDimDoorBase extends BlockDoor implements IDimDoor, IT
|
||||||
return (state.getValue(BlockDoor.FACING) == EnumFacing.fromAngle(entity.rotationYaw));
|
return (state.getValue(BlockDoor.FACING) == EnumFacing.fromAngle(entity.rotationYaw));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public TileEntity initDoorTE(World world, BlockPos pos) {
|
|
||||||
TileEntity te = createTileEntity(world, world.getBlockState(pos));
|
|
||||||
world.setTileEntity(pos, te);
|
|
||||||
return te;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void breakBlock(World world, BlockPos pos, IBlockState state) {
|
public void breakBlock(World world, BlockPos pos, IBlockState state) {
|
||||||
// This function runs on the server side after a block is replaced
|
// This function runs on the server side after a block is replaced
|
||||||
|
|
|
@ -96,13 +96,6 @@ public class BlockTransTrapdoor extends BlockTrapDoor implements IDimDoor, ITile
|
||||||
return state.getValue(BlockTrapDoor.HALF) == DoorHalf.BOTTOM;
|
return state.getValue(BlockTrapDoor.HALF) == DoorHalf.BOTTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public TileEntity initDoorTE(World world, BlockPos pos) {
|
|
||||||
TileEntity te = createNewTileEntity(world, getMetaFromState(world.getBlockState(pos)));
|
|
||||||
world.setTileEntity(pos, te);
|
|
||||||
return te;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDoorOnRift(World world, BlockPos pos) {return true;}
|
public boolean isDoorOnRift(World world, BlockPos pos) {return true;}
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,6 @@ public interface IDimDoor
|
||||||
|
|
||||||
public Item getItemDoor();
|
public Item getItemDoor();
|
||||||
|
|
||||||
public TileEntity initDoorTE(World world, BlockPos pos);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* checks if any of this doors blocks are overlapping with a rift
|
* checks if any of this doors blocks are overlapping with a rift
|
||||||
* @param world
|
* @param world
|
||||||
|
|
Loading…
Reference in a new issue