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

Method grow

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

Source from the content-addressed store, hash-verified

131 }
132
133 public void grow(World worldIn, Random rand, BlockPos pos, IBlockState state)
134 {
135 BlockDoublePlant.EnumPlantType blockdoubleplant$enumplanttype = BlockDoublePlant.EnumPlantType.GRASS;
136
137 if (state.getValue(TYPE) == BlockTallGrass.EnumType.FERN)
138 {
139 blockdoubleplant$enumplanttype = BlockDoublePlant.EnumPlantType.FERN;
140 }
141
142 if (Blocks.double_plant.canPlaceBlockAt(worldIn, pos))
143 {
144 Blocks.double_plant.placeAt(worldIn, pos, blockdoubleplant$enumplanttype, 2);
145 }
146 }
147
148 /**
149 * Convert the given metadata into a BlockState for this Block

Callers

nothing calls this directly

Calls 3

placeAtMethod · 0.80
getValueMethod · 0.65
canPlaceBlockAtMethod · 0.45

Tested by

no test coverage detected