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

Method isBlockPowered

src/main/java/net/minecraft/world/World.java:3255–3258  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

3253 }
3254
3255 public boolean isBlockPowered(BlockPos pos)
3256 {
3257 return this.getRedstonePower(pos.down(), EnumFacing.DOWN) > 0 ? true : (this.getRedstonePower(pos.up(), EnumFacing.UP) > 0 ? true : (this.getRedstonePower(pos.north(), EnumFacing.NORTH) > 0 ? true : (this.getRedstonePower(pos.south(), EnumFacing.SOUTH) > 0 ? true : (this.getRedstonePower(pos.west(), EnumFacing.WEST) > 0 ? true : this.getRedstonePower(pos.east(), EnumFacing.EAST) > 0))));
3258 }
3259
3260 /**
3261 * Checks if the specified block or its neighbors are powered by a neighboring block. Used by blocks like TNT and

Callers 15

onNeighborBlockChangeMethod · 0.80
onBlockAddedMethod · 0.80
onNeighborBlockChangeMethod · 0.80
onNeighborBlockChangeMethod · 0.80
func_176567_aMethod · 0.80
onNeighborBlockChangeMethod · 0.80
onBlockAddedMethod · 0.80
onNeighborBlockChangeMethod · 0.80
updateTickMethod · 0.80
onNeighborBlockChangeMethod · 0.80
updateStateMethod · 0.80

Calls 7

getRedstonePowerMethod · 0.95
downMethod · 0.80
upMethod · 0.80
northMethod · 0.80
southMethod · 0.80
westMethod · 0.80
eastMethod · 0.80

Tested by

no test coverage detected