// Path: src/main/java/net/dries007/tfc/seedmaker/datatypes/Stability.java
// public enum Stability
// {
//     SEISMIC_STABLE(0, false),
//     SEISMIC_UNSTABLE(1, true);
// 
//     public final int id;
//     public final boolean value;
// 
//     Stability(final int id, final boolean value)
//     {
//         this.id = id;
//         this.value = value;
//     }
// }


import net.dries007.tfc.seedmaker.datatypes.Stability;
package net.dries007.tfc.seedmaker.genlayers;


public class LayerStabilityInit extends Layer
{
    public LayerStabilityInit(final long seed)
    {
        super(seed);
    }

    @Override
    public int[] getInts(final int x, final int y, final int sizeX, final int sizeY)
    {
        final int[] cache = new int[sizeX * sizeY];

        for (int yy = 0; yy < sizeY; ++yy)
        {
            for (int xx = 0; xx < sizeX; ++xx)
            {
                this.initChunkSeed(x + xx, y + yy);
// Path: src/main/java/net/dries007/tfc/seedmaker/datatypes/Stability.java
// public enum Stability
// {
//     SEISMIC_STABLE(0, false),
//     SEISMIC_UNSTABLE(1, true);
// 
//     public final int id;
//     public final boolean value;
// 
//     Stability(final int id, final boolean value)
//     {
//         this.id = id;
//         this.value = value;
//     }
// }


// Path: src/main/java/net/dries007/tfc/seedmaker/genlayers/LayerStabilityInit.java
import net.dries007.tfc.seedmaker.datatypes.Stability;

package net.dries007.tfc.seedmaker.genlayers;


public class LayerStabilityInit extends Layer
{
    public LayerStabilityInit(final long seed)
    {
        super(seed);
    }

    @Override
    public int[] getInts(final int x, final int y, final int sizeX, final int sizeY)
    {
        final int[] cache = new int[sizeX * sizeY];

        for (int yy = 0; yy < sizeY; ++yy)
        {
            for (int xx = 0; xx < sizeX; ++xx)
            {
                this.initChunkSeed(x + xx, y + yy);
                cache[xx + yy * sizeX] = this.nextInt(3) == 0 ? Stability.SEISMIC_UNSTABLE.id : Stability.SEISMIC_STABLE.id;