MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / run

Method run

src/main/java/net/minecraft/block/BlockBeacon.java:121–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 11

canSeeSkyMethod · 0.95
getBlockMethod · 0.95
updateBeaconMethod · 0.80
getYMethod · 0.65
getXMethod · 0.65
getZMethod · 0.65
getBlockStateMethod · 0.65
addScheduledTaskMethod · 0.65
getTileEntityMethod · 0.65
addBlockEventMethod · 0.45

Tested by

no test coverage detected