Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Returns true if the block is emitting indirect/weak redstone power on the specified side. If isBlockNormalCube
- * returns true, standard redstone propagation rules will apply instead and this will not be called. Args: World, X,
- * Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.
- */
- public int isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
- {
- int var5 = par1IBlockAccess.getBlockMetadata(par2, par3, par4);
- int var6 = getOrientation(var5);
- {
- if (!this.func_96470_c(var5))
- {
- return 0;
- }
- if (var6 == 0 && par5 == 1) return 15;
- if (var6 == 1 && par5 == 0) return 15;
- if (var6 == 2 && par5 == 3) return 15;
- if (var6 == 3 && par5 == 2) return 15;
- if (var6 == 4 && par5 == 5) return 15;
- if (var6 == 5 && par5 == 4) return 15;
- else
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment