Crystal grass & small changes

This commit is contained in:
paulevsGitch 2020-10-26 06:03:54 +03:00
parent 4073e0a32c
commit 7de70c9553
22 changed files with 376 additions and 14 deletions

View file

@ -11,10 +11,21 @@ import ru.betterend.util.BlocksHelper;
public class SinglePlantFeature extends ScatterFeature {
private final Block plant;
private final boolean rawHeightmap;
public SinglePlantFeature(Block plant, int radius) {
this(plant, radius, true);
}
public SinglePlantFeature(Block plant, int radius, boolean rawHeightmap) {
super(radius);
this.plant = plant;
this.rawHeightmap = rawHeightmap;
}
@Override
protected BlockPos getCenterGround(StructureWorldAccess world, BlockPos pos) {
return rawHeightmap ? getPosOnSurfaceWG(world, pos) : getPosOnSurface(world, pos);
}
@Override