Search in sources :

Example 11 with Border3D

use of org.terasology.world.generation.Border3D in project Terasology by MovingBlocks.

the class SeaLevelProvider method process.

@Override
public void process(GeneratingRegion region) {
    Border3D border = region.getBorderForFacet(SeaLevelFacet.class);
    SeaLevelFacet facet = new SeaLevelFacet(region.getRegion(), border);
    facet.setSeaLevel(seaLevel);
    region.setRegionFacet(SeaLevelFacet.class, facet);
}
Also used : Border3D(org.terasology.world.generation.Border3D) SeaLevelFacet(org.terasology.world.generation.facets.SeaLevelFacet)

Aggregations

Border3D (org.terasology.world.generation.Border3D)11 SurfaceHeightFacet (org.terasology.world.generation.facets.SurfaceHeightFacet)6 Before (org.junit.Before)4 BaseVector2i (org.terasology.math.geom.BaseVector2i)4 Vector3i (org.terasology.math.geom.Vector3i)4 Region3i (org.terasology.math.Region3i)3 SeaLevelFacet (org.terasology.world.generation.facets.SeaLevelFacet)3 BiomeFacet (org.terasology.core.world.generator.facets.BiomeFacet)2 Rect2i (org.terasology.math.geom.Rect2i)2 SurfaceHumidityFacet (org.terasology.world.generation.facets.SurfaceHumidityFacet)2 Predicate (com.google.common.base.Predicate)1 HashMap (java.util.HashMap)1 TreeFacet (org.terasology.core.world.generator.facets.TreeFacet)1 FacetProvider (org.terasology.world.generation.FacetProvider)1 RegionImpl (org.terasology.world.generation.RegionImpl)1 WorldFacet (org.terasology.world.generation.WorldFacet)1 SurfaceTemperatureFacet (org.terasology.world.generation.facets.SurfaceTemperatureFacet)1 LayeredZoneRegionFunction (org.terasology.world.zones.LayeredZoneRegionFunction)1 MinMaxLayerThickness (org.terasology.world.zones.MinMaxLayerThickness)1 Zone (org.terasology.world.zones.Zone)1