9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 19:19:07 +00:00

Biome Rarity

This commit is contained in:
Daniel Mills
2020-07-29 23:18:37 -04:00
parent 36e5fec284
commit 773dd2fd1a
4 changed files with 81 additions and 20 deletions

View File

@@ -6,8 +6,8 @@ import org.bukkit.block.Biome;
import org.bukkit.block.data.BlockData;
import com.volmit.iris.Iris;
import com.volmit.iris.util.BiomeRarityCellGenerator;
import com.volmit.iris.util.CNG;
import com.volmit.iris.util.CellGenerator;
import com.volmit.iris.util.Desc;
import com.volmit.iris.util.DontObfuscate;
import com.volmit.iris.util.KList;
@@ -96,7 +96,7 @@ public class IrisBiome extends IrisRegistrant
private KList<IrisDepositGenerator> deposits = new KList<>();
private transient ReentrantLock lock = new ReentrantLock();
private transient CellGenerator childrenCell;
private transient BiomeRarityCellGenerator childrenCell;
private transient InferredType inferredType;
private transient CNG biomeGenerator;
private transient int maxHeight = Integer.MIN_VALUE;
@@ -134,11 +134,11 @@ public class IrisBiome extends IrisRegistrant
return biomeGenerator;
}
public CellGenerator getChildrenGenerator(RNG random, int sig, double scale)
public BiomeRarityCellGenerator getChildrenGenerator(RNG random, int sig, double scale)
{
if(childrenCell == null)
{
childrenCell = new CellGenerator(random.nextParallelRNG(sig * 213));
childrenCell = new BiomeRarityCellGenerator(random.nextParallelRNG(sig * 2137));
childrenCell.setCellScale(scale);
}