9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00
This commit is contained in:
DanLT
2021-09-01 13:09:45 -08:00
parent 7a188af002
commit 8e873ccd00
5 changed files with 13 additions and 34 deletions

View File

@@ -188,12 +188,10 @@ public interface Engine extends DataProvider, Fallible, LootProvider, BlockUpdat
default IrisBiome getCaveOrMantleBiome(int x, int y, int z) {
MatterCavern m = getMantle().getMantle().get(x, y, z, MatterCavern.class);
if(m != null && m.getCustomBiome() != null && !m.getCustomBiome().isEmpty())
{
if (m != null && m.getCustomBiome() != null && !m.getCustomBiome().isEmpty()) {
IrisBiome biome = getData().getBiomeLoader().load(m.getCustomBiome());
if(biome != null)
{
if (biome != null) {
return biome;
}
}
@@ -727,8 +725,7 @@ public interface Engine extends DataProvider, Fallible, LootProvider, BlockUpdat
int getCacheID();
default IrisBiome getBiomeOrMantle(Location l)
{
default IrisBiome getBiomeOrMantle(Location l) {
return getBiomeOrMantle(l.getBlockX(), l.getBlockY(), l.getBlockZ());
}
}

View File

@@ -313,8 +313,7 @@ public interface EngineMantle extends IObjectPlacer {
return false;// TODO:
}
default int getLoadedRegionCount()
{
default int getLoadedRegionCount() {
return getMantle().getLoadedRegionCount();
}
}

View File

@@ -37,13 +37,11 @@ public class IrisSeed {
@Desc("To calculate a seed Iris passes in it's natural seed for the current feature, then mixes it with your seed. Setting this to true ignores the parent seed and always uses your exact seed ignoring the input of Iris feature seeds. You can use this to match seeds on other generators.")
private boolean ignoreNaturalSeedInput = false;
public long getSeed(long seed)
{
public long getSeed(long seed) {
return (seed * 47) + getSeed() + 29334667L;
}
public RNG rng(long inseed)
{
public RNG rng(long inseed) {
return new RNG(getSeed(inseed));
}
}