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

Method anywater

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

Source from the content-addressed store, hash-verified

664 public static boolean waterstream(Block aBlock) {return MD.Streams.mLoaded && UT.Code.stringValidate(ST.regName(aBlock)).startsWith("streams:river/tile.water");}
665
666 public static boolean anywater(IBlockAccess aWorld, int aX, int aY, int aZ) {return anywater(aWorld, aX, aY, aZ, aWorld.getBlock(aX, aY, aZ));}
667 public static boolean anywater(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock) {return aBlock instanceof BlockWaterlike || water(aWorld, aX, aY, aZ, aBlock) || waterstream(aBlock);}
668 public static boolean anywater(Block aBlock) {return aBlock instanceof BlockWaterlike || water(aBlock) || waterstream(aBlock);}
669

Callers 11

irrelevantMethod · 0.95
generateMethod · 0.95
tryPlaceStuffMethod · 0.95
generateMethod · 0.95
tryPlaceStuffMethod · 0.95
bumbleCanProduceMethod · 0.95
canSustainPlantMethod · 0.95
updateTick2Method · 0.95
updateTickMethod · 0.95
updateTickMethod · 0.95

Calls 3

waterMethod · 0.95
waterstreamMethod · 0.95
getBlockMethod · 0.65

Tested by

no test coverage detected