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

Method updateTick

src/main/java/net/minecraft/block/BlockIce.java:74–88  ·  view source on GitHub ↗
(World worldIn, BlockPos pos, IBlockState state, Random rand)

Source from the content-addressed store, hash-verified

72 }
73
74 public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand)
75 {
76 if (worldIn.getLightFor(EnumSkyBlock.BLOCK, pos) > 11 - this.getLightOpacity())
77 {
78 if (worldIn.provider.doesWaterVaporize())
79 {
80 worldIn.setBlockToAir(pos);
81 }
82 else
83 {
84 this.dropBlockAsItem(worldIn, pos, worldIn.getBlockState(pos), 0);
85 worldIn.setBlockState(pos, Blocks.water.getDefaultState());
86 }
87 }
88 }
89
90 public int getMobilityFlag()
91 {

Callers

nothing calls this directly

Calls 8

getLightOpacityMethod · 0.80
doesWaterVaporizeMethod · 0.80
setBlockToAirMethod · 0.80
dropBlockAsItemMethod · 0.80
getDefaultStateMethod · 0.80
getBlockStateMethod · 0.65
getLightForMethod · 0.45
setBlockStateMethod · 0.45

Tested by

no test coverage detected