(IBlockAccess aWorld, int aX, int aY, int aZ)
| 456 | } |
| 457 | |
| 458 | public static void update(IBlockAccess aWorld, int aX, int aY, int aZ) { |
| 459 | ((World)aWorld).markBlockForUpdate(aX, aY, aZ); |
| 460 | if (CLIENT_BLOCKUPDATE_SOUNDS && CODE_CLIENT && CLIENT_TIME > 100) { |
| 461 | EntityPlayer tPlayer = GT_API.api_proxy.getThePlayer(); |
| 462 | if (tPlayer != null && Math.abs(tPlayer.posX - aX) < 16 && Math.abs(tPlayer.posY - aY) < 16 && Math.abs(tPlayer.posZ - aZ) < 16) { |
| 463 | UT.Sounds.play(SFX.MC_FIREWORK_LAUNCH, 1, 1.0F, 1.0F, aX, aY, aZ); |
| 464 | } |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | public static Block block(IBlockAccess aWorld, int aX, int aY, int aZ) {return aWorld.getBlock(aX, aY, aZ);} |
| 469 | public static Block block(World aWorld, int aX, int aY, int aZ, boolean aLoadUnloadedChunks) {return aLoadUnloadedChunks || aWorld.blockExists(aX, aY, aZ) ? aWorld.getBlock(aX, aY, aZ) : NB;} |
no test coverage detected