MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / waterstream

Method waterstream

src/main/java/gregapi/util/WD.java:664–664  ·  view source on GitHub ↗
(Block aBlock)

Source from the content-addressed store, hash-verified

662 public static boolean water(Block aBlock) {return aBlock == Blocks.water || aBlock == Blocks.flowing_water;}
663
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);}

Callers 5

onItemRightClickMethod · 0.95
anywaterMethod · 0.95
infiniteWaterMethod · 0.95
onTickPreMethod · 0.95
onPlayerInteractionMethod · 0.95

Calls 2

regNameMethod · 0.95
stringValidateMethod · 0.80

Tested by

no test coverage detected