mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 11:39:07 +00:00
Cleanup
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,8 +313,7 @@ public interface EngineMantle extends IObjectPlacer {
|
||||
return false;// TODO:
|
||||
}
|
||||
|
||||
default int getLoadedRegionCount()
|
||||
{
|
||||
default int getLoadedRegionCount() {
|
||||
return getMantle().getLoadedRegionCount();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user