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

Method getActualState

src/main/java/net/minecraft/block/BlockWall.java:173–176  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 8

canConnectToMethod · 0.95
upMethod · 0.80
northMethod · 0.80
eastMethod · 0.80
southMethod · 0.80
westMethod · 0.80
withPropertyMethod · 0.65
isAirBlockMethod · 0.65

Tested by

no test coverage detected