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

Method getRedstonePower

src/main/java/net/minecraft/world/World.java:3248–3253  ·  view source on GitHub ↗
(BlockPos pos, EnumFacing facing)

Source from the content-addressed store, hash-verified

3246 }
3247
3248 public int getRedstonePower(BlockPos pos, EnumFacing facing)
3249 {
3250 IBlockState iblockstate = this.getBlockState(pos);
3251 Block block = iblockstate.getBlock();
3252 return block.isNormalCube() ? this.getStrongPower(pos) : block.isProvidingWeakPower(this, pos, iblockstate, facing);
3253 }
3254
3255 public boolean isBlockPowered(BlockPos pos)
3256 {

Callers 4

isSidePoweredMethod · 0.95
isBlockPoweredMethod · 0.95

Calls 5

getBlockStateMethod · 0.95
getBlockMethod · 0.95
isNormalCubeMethod · 0.95
getStrongPowerMethod · 0.95
isProvidingWeakPowerMethod · 0.95

Tested by

no test coverage detected