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

Method canConnectTo

src/main/java/net/minecraft/block/BlockWall.java:122–126  ·  view source on GitHub ↗
(IBlockAccess worldIn, BlockPos pos)

Source from the content-addressed store, hash-verified

120 }
121
122 public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
123 {
124 Block block = worldIn.getBlockState(pos).getBlock();
125 return block == Blocks.barrier ? false : (block != this && !(block instanceof BlockFenceGate) ? (block.blockMaterial.isOpaque() && block.isFullCube() ? block.blockMaterial != Material.gourd : false) : true);
126 }
127
128 /**
129 * returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)

Callers 2

getActualStateMethod · 0.95

Calls 4

isFullCubeMethod · 0.95
isOpaqueMethod · 0.80
getBlockMethod · 0.65
getBlockStateMethod · 0.65

Tested by

no test coverage detected