Mister-Yaoi

Output

Mar 4th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1.     /**
  2.      * Returns true if the block is emitting indirect/weak redstone power on the specified side. If isBlockNormalCube
  3.      * returns true, standard redstone propagation rules will apply instead and this will not be called. Args: World, X,
  4.      * Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.
  5.      */
  6.     public int isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
  7.     {
  8.         int var5 = par1IBlockAccess.getBlockMetadata(par2, par3, par4);
  9.         int var6 = getOrientation(var5);
  10.        
  11.         {
  12.             if (!this.func_96470_c(var5))
  13.             {
  14.                 return 0;
  15.             }
  16.             if (var6 == 0 && par5 == 1) return 15;
  17.             if (var6 == 1 && par5 == 0) return 15;
  18.             if (var6 == 2 && par5 == 3) return 15;
  19.             if (var6 == 3 && par5 == 2) return 15;
  20.             if (var6 == 4 && par5 == 5) return 15;
  21.             if (var6 == 5 && par5 == 4) return 15;
  22.            
  23.             else
  24.             return 0;
  25.            
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment