(World worldIn, BlockPos pos, IBlockState state)
| 161 | } |
| 162 | |
| 163 | protected boolean checkForDrop(World worldIn, BlockPos pos, IBlockState state) |
| 164 | { |
| 165 | if (state.getBlock() == this && this.canPlaceAt(worldIn, pos, state.getValue(FACING))) |
| 166 | { |
| 167 | return true; |
| 168 | } |
| 169 | else |
| 170 | { |
| 171 | if (worldIn.getBlockState(pos).getBlock() == this) |
| 172 | { |
| 173 | this.dropBlockAsItem(worldIn, pos, state, 0); |
| 174 | worldIn.setBlockToAir(pos); |
| 175 | } |
| 176 | |
| 177 | return false; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Ray traces through the blocks collision from start vector to end vector returning a ray trace hit. |
no test coverage detected