@Override public void breakBlock(World worldIn, @Nonnull BlockPos pos, @Nonnull IBlockState state) { TEToolRack te = Helpers.getTE(worldIn, pos, TEToolRack.class); if (te != null) te.onBreakBlock(); super.breakBlock(worldIn, pos, state); } }
@Override public void breakBlock(World world, int x, int y, int z, Block arg4, int arg5) { Coordonate coord = new Coordonate(x, y, z, world); for (LightBlockObserver o : LightBlockEntity.observers) { o.lightBlockDestructor(coord); } super.breakBlock(world, x, y, z, arg4, arg5); }
@Override public void breakBlock(World world, BlockPos blockPos, IBlockState blockState) { TileTeleposer tileTeleposer = (TileTeleposer) world.getTileEntity(blockPos); if (tileTeleposer != null) tileTeleposer.dropItems(); super.breakBlock(world, blockPos, blockState); }
@Override public void breakBlock(World par1World, int x, int y, int z, Block par5, int par6) { SimpleNodeEntity entity = (SimpleNodeEntity) par1World.getTileEntity(x, y, z); entity.onBreakBlock(); super.breakBlock(par1World, x, y, z, par5, par6); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state){ if(this.shouldDropInventory(world, pos)){ this.dropInventory(world, pos); } super.breakBlock(world, pos, state); }
public void breakBlock(World world, BlockPos pos, IBlockState state) { TileSubmitStation tileStation = (TileSubmitStation)world.getTileEntity(pos); if(tileStation != null) { InventoryHelper.dropInventoryItems(world, pos, tileStation); } super.breakBlock(world, pos, state); } }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { if (!keepInventory) { TileEntity tileentity = world.getTileEntity(pos); if (tileentity instanceof TileEntityUmberFurnace) { InventoryHelper.dropInventoryItems(world, pos, (TileEntityUmberFurnace)tileentity); world.updateComparatorOutputLevel(pos, this); } } super.breakBlock(world, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { world.playEvent(2001, pos, Block.getStateId(ModBlocks.AMBER_GLASS.getDefaultState())); super.breakBlock(world, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { TileEntity tileEntity = world.getTileEntity(pos); if (tileEntity != null) { IItemHandler itemHandler = tileEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null); if (itemHandler != null) { ItemUtils.dropItemHandlerItems(world, pos, itemHandler); } } super.breakBlock(world, pos, state); }
@Override public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof IInventory) { InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileentity); worldIn.updateComparatorOutputLevel(pos, this); } super.breakBlock(worldIn, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { TileEntity tileentity = world.getTileEntity(pos); if (tileentity instanceof FeederBlockEntity) { InventoryHelper.dropInventoryItems(world, pos, (FeederBlockEntity) tileentity); world.updateComparatorOutputLevel(pos, this); } super.breakBlock(world, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { world.playEvent(2001, pos, Block.getStateId(ModBlocks.TEMPLE_BRICK.getDefaultState())); super.breakBlock(world,pos, state); }
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof TileEntityLectern) { InventoryHelper.dropInventoryItems(worldIn, pos, (TileEntityLectern) tileentity); worldIn.updateComparatorOutputLevel(pos, this); } super.breakBlock(worldIn, pos, state); }
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof IInventory) { InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileentity); worldIn.updateComparatorOutputLevel(pos, this); } super.breakBlock(worldIn, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { world.playEvent(2001, pos, Block.getStateId(Blocks.OBSIDIAN.getDefaultState())); Utils.dropInventoryContents(Utils.getTileEntity(world, pos, TileEntityOfferingAltar.class)); super.breakBlock(world, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { TileEntityComposter composter = Utils.getTileEntity(world, pos, TileEntityComposter.class); if (composter != null) for (int i = 0; i < composter.getSizeInventory(); i++) { ItemStack is = composter.getStackInSlot(i); if (!is.isEmpty()) Utils.dropStack(world, pos, is); } super.breakBlock(world, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { TileEntitySmoothieMaker tile = Utils.getTileEntity(world, pos, TileEntitySmoothieMaker.class); if (tile != null) for (int i = 0; i < tile.getSizeInventory(); i++) { ItemStack is = tile.getStackInSlot(i); if (!is.isEmpty()) Utils.dropStack(world, pos, is); } world.setBlockToAir(pos); super.breakBlock(world, pos, state); }
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { dropPixie(worldIn, pos); int meta = 0; if (worldIn.getTileEntity(pos) != null && worldIn.getTileEntity(pos) instanceof TileEntityPixieHouse) { meta = ((TileEntityPixieHouse) worldIn.getTileEntity(pos)).houseType; } spawnAsEntity(worldIn, pos, new ItemStack(ModBlocks.pixieHouse, 1, meta)); super.breakBlock(worldIn, pos, state); }
@Override public void breakBlock(World world, BlockPos pos, IBlockState state) { TileEntitySiloTank tile = Utils.getTileEntity(world, pos, TileEntitySiloTank.class); if (tile != null) for (int i = 0; i < tile.getSizeInventory(); i++) { ItemStack is = tile.getStackInSlot(i); if (!is.isEmpty()) Utils.dropStack(world, pos, is); } world.setBlockToAir(pos); super.breakBlock(world, pos, state); }
@Override public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { if (worldIn.getTileEntity(pos) instanceof TileEntityPodium) { TileEntityPodium podium = (TileEntityPodium) worldIn.getTileEntity(pos); if (!podium.getStackInSlot(0).isEmpty()) { worldIn.spawnEntity(new EntityItem(worldIn, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, podium.getStackInSlot(0))); } } super.breakBlock(worldIn, pos, state); }