Get the actual Block state of this Block at the given position. This applies properties not visible in the metadata, such as fence connections.
(IBlockState state, IBlockAccess worldIn, BlockPos pos)
| 171 | * metadata, such as fence connections. |
| 172 | */ |
| 173 | public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos) |
| 174 | { |
| 175 | return state.withProperty(UP, !worldIn.isAirBlock(pos.up())).withProperty(NORTH, this.canConnectTo(worldIn, pos.north())).withProperty(EAST, this.canConnectTo(worldIn, pos.east())).withProperty(SOUTH, this.canConnectTo(worldIn, pos.south())).withProperty(WEST, this.canConnectTo(worldIn, pos.west())); |
| 176 | } |
| 177 | |
| 178 | protected BlockState createBlockState() |
| 179 | { |
nothing calls this directly
no test coverage detected