(World worldIn, BlockPos pos, IBlockState state, Random rand)
| 30 | } |
| 31 | |
| 32 | public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand) |
| 33 | { |
| 34 | if (worldIn.getBlockState(pos.down()).getBlock() == Blocks.reeds || this.checkForDrop(worldIn, pos, state)) |
| 35 | { |
| 36 | if (worldIn.isAirBlock(pos.up())) |
| 37 | { |
| 38 | int i; |
| 39 | |
| 40 | for (i = 1; worldIn.getBlockState(pos.down(i)).getBlock() == this; ++i) |
| 41 | { |
| 42 | ; |
| 43 | } |
| 44 | |
| 45 | if (i < 3) |
| 46 | { |
| 47 | int j = state.getValue(AGE); |
| 48 | |
| 49 | if (j == 15) |
| 50 | { |
| 51 | worldIn.setBlockState(pos.up(), this.getDefaultState()); |
| 52 | worldIn.setBlockState(pos, state.withProperty(AGE, 0), 4); |
| 53 | } |
| 54 | else |
| 55 | { |
| 56 | worldIn.setBlockState(pos, state.withProperty(AGE, j + 1), 4); |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | public boolean canPlaceBlockAt(World worldIn, BlockPos pos) |
| 64 | { |
nothing calls this directly
no test coverage detected