MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / update

Method update

src/main/java/gregapi/util/WD.java:458–466  ·  view source on GitHub ↗
(IBlockAccess aWorld, int aX, int aY, int aZ)

Source from the content-addressed store, hash-verified

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;}

Callers 12

generateMethod · 0.95
setExtendedMetaDataMethod · 0.95
receiveDataByteMethod · 0.95
receiveDataShortMethod · 0.95
receiveDataIntegerMethod · 0.95
receiveDataLongMethod · 0.95
receiveDataByteArrayMethod · 0.95
receiveDataMethod · 0.95
receiveBlockErrorMethod · 0.95
updateTickMethod · 0.95
updateTickMethod · 0.95
updateTickMethod · 0.95

Calls 2

getThePlayerMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected