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

Method canPlaceAt

src/main/java/net/minecraft/block/BlockTorch.java:84–89  ·  view source on GitHub ↗
(World worldIn, BlockPos pos, EnumFacing facing)

Source from the content-addressed store, hash-verified

82 }
83
84 private boolean canPlaceAt(World worldIn, BlockPos pos, EnumFacing facing)
85 {
86 BlockPos blockpos = pos.offset(facing.getOpposite());
87 boolean flag = facing.getAxis().isHorizontal();
88 return flag && worldIn.isBlockNormalCube(blockpos, true) || facing.equals(EnumFacing.UP) && this.canPlaceOn(worldIn, blockpos);
89 }
90
91 /**
92 * Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the

Callers 3

canPlaceBlockAtMethod · 0.95
onBlockPlacedMethod · 0.95
checkForDropMethod · 0.95

Calls 7

canPlaceOnMethod · 0.95
getOppositeMethod · 0.80
isHorizontalMethod · 0.80
getAxisMethod · 0.80
offsetMethod · 0.45
isBlockNormalCubeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected