use of crafttweaker.api.world.IBlockPos in project GregTech by GregTechCE.
the class ShapeGenerator method generate.
@ZenMethod
@Method(modid = GTValues.MODID_CT)
public void generate(long randomSeed, IWorld world, IBlockPos centerPos, IBlockState blockState) {
World mcWorld = CraftTweakerMC.getWorld(world);
net.minecraft.block.state.IBlockState mcBlockState = CraftTweakerMC.getBlockState(blockState);
BlockPos blockPos = CraftTweakerMC.getBlockPos(centerPos);
generate(new Random(randomSeed), (x, y, z) -> mcWorld.setBlockState(blockPos, mcBlockState));
}
Aggregations