mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 15:26:51 +00:00
Ye
This commit is contained in:
1 parent
7e9cea94f3
commit
d1925201ef
22 files changed
+167
-45
No files matched your search
@@ -45,7 +45,7 @@ public class CommandIris implements CommandExecutor
|
||||
{
|
||||
IrisGenerator g = (IrisGenerator) w.getGenerator();
|
||||
IrisBiome b = null;
|
||||
for(IrisBiome i : IrisBiome.getBiomes())
|
||||
for(IrisBiome i : g.getLoadedBiomes())
|
||||
{
|
||||
if(args[1].toLowerCase().equals(i.getName().toLowerCase().replaceAll("\\Q \\E", "_")))
|
||||
{
|
||||
|
||||
@@ -9,8 +9,10 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.Chunk;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -188,6 +190,7 @@ public class Iris extends JavaPlugin implements Listener
|
||||
|
||||
public static InputStream loadResource(String string)
|
||||
{
|
||||
L.v("Loading Resource: " + "Iris.jar/" + string);
|
||||
return Iris.class.getResourceAsStream("/" + string);
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public class Settings
|
||||
{
|
||||
public double horizontalZoom = 1; // 0.525
|
||||
public double heightFracture = 155;
|
||||
public double landScale = 0.125;
|
||||
public double landScale = 0.205;
|
||||
public double landChance = 0.529;
|
||||
public double roughness = 1.333;
|
||||
public double heightMultiplier = 0.806;
|
||||
|
||||
@@ -83,6 +83,11 @@ public class IrisGenerator extends ParallelChunkGenerator
|
||||
this(Iris.dimensions.get("overworld"));
|
||||
}
|
||||
|
||||
public GList<IrisBiome> getLoadedBiomes()
|
||||
{
|
||||
return IrisBiome.getAllBiomes().copy().add(dim.getBiomes());
|
||||
}
|
||||
|
||||
public IrisGenerator(IrisDimension dim)
|
||||
{
|
||||
this.dim = dim;
|
||||
|
||||
@@ -54,48 +54,6 @@ public class IrisBiome
|
||||
.surface(MB.of(Material.SAND), MB.of(Material.CLAY), MB.of(Material.GRAVEL))
|
||||
.simplexSurface();
|
||||
|
||||
// public static final IrisBiome FOREST = new IrisBiome("Forest", Biome.FOREST)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.23)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13);
|
||||
// public static final IrisBiome FOREST_HILLS = new IrisBiome("Forest Hills", Biome.FOREST_HILLS)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.23)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13);
|
||||
// public static final IrisBiome FOREST_MOUNTAINS = new IrisBiome("Forest Mountains", Biome.MUTATED_EXTREME_HILLS_WITH_TREES)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.13)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13);
|
||||
// public static final IrisBiome HAUNTED_FOREST = new IrisBiome("Haunted Forest", Biome.MUTATED_SWAMPLAND)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.13)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13)
|
||||
// .surface(MB.of(Material.GRASS), MB.of(Material.GRASS), MB.of(Material.GRASS), MB.of(Material.GRASS), MB.of(Material.SOUL_SAND), MB.of(Material.DIRT), MB.of(Material.DIRT, 1), MB.of(Material.DIRT, 2))
|
||||
// .scatterSurface();
|
||||
// public static final IrisBiome BIRCH_FOREST = new IrisBiome("Birch Forest", Biome.BIRCH_FOREST)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.23)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13);
|
||||
// public static final IrisBiome BIRCH_FOREST_HILLS = new IrisBiome("Birch Forest Hills", Biome.BIRCH_FOREST_HILLS)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.23)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13);
|
||||
// public static final IrisBiome ROOFED_FOREST = new IrisBiome("Roofed Forest", Biome.ROOFED_FOREST)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 1), 0.23)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.13);
|
||||
// public static final IrisBiome TAIGA = new IrisBiome("Taiga", Biome.TAIGA)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.07);
|
||||
// public static final IrisBiome EXTREME_HILLS = new IrisBiome("Extreme Hills", Biome.EXTREME_HILLS)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.04)
|
||||
// .height(0.28);
|
||||
// public static final IrisBiome EXTREME_HILLS_TREES = new IrisBiome("Extreme Hills +", Biome.EXTREME_HILLS_WITH_TREES)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.09);
|
||||
// public static final IrisBiome TAIGA_COLD = new IrisBiome("Taiga Cold", Biome.TAIGA_COLD)
|
||||
// .scatter(MB.of(Material.LONG_GRASS, 2), 0.04);
|
||||
// public static final IrisBiome TAIGA_COLD_HILLS = new IrisBiome("Taiga Cold Hills", Biome.TAIGA_COLD_HILLS);
|
||||
// public static final IrisBiome ICE_FLATS = new IrisBiome("Ice Flats", Biome.ICE_FLATS);
|
||||
// public static final IrisBiome ICE_MOUNTAINS = new IrisBiome("Ice Mountains", Biome.ICE_MOUNTAINS);
|
||||
// public static final IrisBiome REDWOOD_TAIGA = new IrisBiome("Redwood Taiga", Biome.REDWOOD_TAIGA)
|
||||
// .surface(MB.of(Material.DIRT, 2), MB.of(Material.DIRT, 1))
|
||||
// .simplexSurface();
|
||||
// public static final IrisBiome REDWOOD_TAIGA_HILLS = new IrisBiome("Redwood Taiga Hills", Biome.REDWOOD_TAIGA_HILLS)
|
||||
// .surface(MB.of(Material.DIRT, 2), MB.of(Material.DIRT, 1))
|
||||
// .simplexSurface();
|
||||
|
||||
//@done
|
||||
private static final GMap<Biome, IrisBiome> map = build();
|
||||
private String name;
|
||||
|
||||
Reference in new issue
Block a user