mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 12:29:20 +00:00
More Performance
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.volmit.iris.util;
|
||||
|
||||
import com.volmit.iris.object.IrisBiome;
|
||||
import com.volmit.iris.object.IrisBiomePaletteLayer;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@@ -9,23 +8,12 @@ import lombok.Data;
|
||||
public class BiomeResult
|
||||
{
|
||||
private IrisBiome biome;
|
||||
private IrisBiomePaletteLayer air;
|
||||
private double heightOffset;
|
||||
private double distance;
|
||||
|
||||
public BiomeResult(IrisBiome biome, double distance)
|
||||
{
|
||||
this.biome = biome;
|
||||
this.distance = distance;
|
||||
this.heightOffset = 0;
|
||||
}
|
||||
|
||||
public BiomeResult(IrisBiome biome, double distance, double height, IrisBiomePaletteLayer air)
|
||||
{
|
||||
this.biome = biome;
|
||||
this.distance = distance;
|
||||
this.heightOffset = height;
|
||||
this.air = air;
|
||||
}
|
||||
|
||||
public boolean is(BiomeResult r)
|
||||
|
||||
@@ -67,7 +67,7 @@ public class CellGenerator
|
||||
|
||||
return ((fn.GetCellular((float) ((x * cellScale) + (cng.noise(x, z) * shuffle)),
|
||||
|
||||
(float) ((y * cellScale) + (cng.noise(x, y) * shuffle))
|
||||
(float) ((y * 8 * cellScale) + (cng.noise(x, y * 8) * shuffle))
|
||||
|
||||
, (float) ((z * cellScale) + (cng.noise(z, x) * shuffle))) + 1f) / 2f) * (possibilities - 1);
|
||||
}
|
||||
|
||||
19
src/main/java/com/volmit/iris/util/IrisStructureResult.java
Normal file
19
src/main/java/com/volmit/iris/util/IrisStructureResult.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.volmit.iris.util;
|
||||
|
||||
import com.volmit.iris.object.IrisStructure;
|
||||
import com.volmit.iris.object.IrisStructureTile;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class IrisStructureResult
|
||||
{
|
||||
private IrisStructureTile tile;
|
||||
private IrisStructure structure;
|
||||
|
||||
public IrisStructureResult(IrisStructureTile tile, IrisStructure structure)
|
||||
{
|
||||
this.tile = tile;
|
||||
this.structure = structure;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user