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

Method easyRep

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

Source from the content-addressed store, hash-verified

685 public static boolean irrelevant(World aWorld, int aX, int aY, int aZ, Block aBlock) {return air(aWorld, aX, aY, aZ, aBlock) || aBlock == Blocks.vine || aBlock == Blocks.snow_layer || aBlock == Blocks.fire || grass(aWorld, aX, aY, aZ) || anywater(aBlock);}
686
687 public static boolean easyRep(World aWorld, int aX, int aY, int aZ) {return easyRep(aWorld, aX, aY, aZ, aWorld.getBlock(aX, aY, aZ));}
688 public static boolean easyRep(World aWorld, int aX, int aY, int aZ, Block aBlock) {return air(aWorld, aX, aY, aZ, aBlock) || aBlock instanceof BlockBush || aBlock instanceof BlockSnow || aBlock instanceof BlockFire || aBlock.isLeaves(aWorld, aX, aY, aZ) || aBlock.canBeReplacedByLeaves(aWorld, aX, aY, aZ);}
689
690 public static boolean infiniteWater(World aWorld, int aX, int aY, int aZ ) {int tLevel = waterLevel(aWorld); return UT.Code.inside(tLevel-15, tLevel, aY) && BIOMES_RIVER_LAKE.contains(aWorld.getBiomeGenForCoords(aX, aZ).biomeName);}

Callers 15

tryPlaceStuffMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
checkAndSetTargetMethod · 0.95
isEasilyReplaceableMethod · 0.95
generateMethod · 0.95
tryPlaceStuffMethod · 0.95
tryPlaceStuffMethod · 0.95
placeBushCoreMethod · 0.95
placeBushSidesMethod · 0.95
tryPlaceStuffMethod · 0.95

Calls 4

airMethod · 0.95
getBlockMethod · 0.65
isLeavesMethod · 0.65
canBeReplacedByLeavesMethod · 0.65

Tested by

no test coverage detected