()
| 119 | HttpUtil.field_180193_a.submit(new Runnable() |
| 120 | { |
| 121 | public void run() |
| 122 | { |
| 123 | Chunk chunk = worldIn.getChunkFromBlockCoords(glassPos); |
| 124 | |
| 125 | for (int i = glassPos.getY() - 1; i >= 0; --i) |
| 126 | { |
| 127 | final BlockPos blockpos = new BlockPos(glassPos.getX(), i, glassPos.getZ()); |
| 128 | |
| 129 | if (!chunk.canSeeSky(blockpos)) |
| 130 | { |
| 131 | break; |
| 132 | } |
| 133 | |
| 134 | IBlockState iblockstate = worldIn.getBlockState(blockpos); |
| 135 | |
| 136 | if (iblockstate.getBlock() == Blocks.beacon) |
| 137 | { |
| 138 | ((WorldServer)worldIn).addScheduledTask(new Runnable() |
| 139 | { |
| 140 | public void run() |
| 141 | { |
| 142 | TileEntity tileentity = worldIn.getTileEntity(blockpos); |
| 143 | |
| 144 | if (tileentity instanceof TileEntityBeacon) |
| 145 | { |
| 146 | ((TileEntityBeacon)tileentity).updateBeacon(); |
| 147 | worldIn.addBlockEvent(blockpos, Blocks.beacon, 1, 0); |
| 148 | } |
| 149 | } |
| 150 | }); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | }); |
| 155 | } |
| 156 | } |
nothing calls this directly
no test coverage detected