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

Method onBlockAdded

src/main/java/net/minecraft/block/BlockFire.java:382–395  ·  view source on GitHub ↗
(World worldIn, BlockPos pos, IBlockState state)

Source from the content-addressed store, hash-verified

380 }
381
382 public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
383 {
384 if (worldIn.provider.getDimensionId() > 0 || !Blocks.portal.func_176548_d(worldIn, pos))
385 {
386 if (!World.doesBlockHaveSolidTopSurface(worldIn, pos.down()) && !this.canNeighborCatchFire(worldIn, pos))
387 {
388 worldIn.setBlockToAir(pos);
389 }
390 else
391 {
392 worldIn.scheduleUpdate(pos, this, this.tickRate(worldIn) + worldIn.rand.nextInt(10));
393 }
394 }
395 }
396
397 public void randomDisplayTick(World worldIn, BlockPos pos, IBlockState state, Random rand)
398 {

Callers

nothing calls this directly

Calls 9

canNeighborCatchFireMethod · 0.95
tickRateMethod · 0.95
func_176548_dMethod · 0.80
downMethod · 0.80
setBlockToAirMethod · 0.80
nextIntMethod · 0.80
getDimensionIdMethod · 0.45
scheduleUpdateMethod · 0.45

Tested by

no test coverage detected