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

Method canBlockStay

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

Source from the content-addressed store, hash-verified

126 }
127
128 public boolean canBlockStay(World worldIn, BlockPos pos, IBlockState state)
129 {
130 return (worldIn.getLight(pos) >= 8 || worldIn.canSeeSky(pos)) && this.canPlaceBlockOn(worldIn.getBlockState(pos.down()).getBlock());
131 }
132
133 protected Item getSeed()
134 {

Callers

nothing calls this directly

Calls 6

canPlaceBlockOnMethod · 0.95
getLightMethod · 0.80
downMethod · 0.80
getBlockMethod · 0.65
getBlockStateMethod · 0.65
canSeeSkyMethod · 0.45

Tested by

no test coverage detected