mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 12:09:07 +00:00
Move NMS out of legacy
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.volmit.iris;
|
||||
|
||||
import com.volmit.iris.generator.legacy.nms.INMS;
|
||||
import com.volmit.iris.nms.INMS;
|
||||
import com.volmit.iris.manager.*;
|
||||
import com.volmit.iris.manager.command.CommandIris;
|
||||
import com.volmit.iris.manager.command.PermissionIris;
|
||||
|
||||
@@ -57,18 +57,15 @@ public class IrisComplex implements DataProvider
|
||||
{
|
||||
case CAVE:
|
||||
return caveBiomeStream;
|
||||
case DEFER:
|
||||
break;
|
||||
case LAKE:
|
||||
break;
|
||||
case LAND:
|
||||
return landBiomeStream;
|
||||
case RIVER:
|
||||
break;
|
||||
case SEA:
|
||||
return seaBiomeStream;
|
||||
case SHORE:
|
||||
return shoreBiomeStream;
|
||||
case DEFER:
|
||||
case LAKE:
|
||||
case RIVER:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ public class IrisEngineFramework implements EngineFramework {
|
||||
@Getter
|
||||
private final Engine engine;
|
||||
|
||||
|
||||
@Getter
|
||||
private final IrisComplex complex;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.volmit.iris.manager;
|
||||
import com.google.gson.Gson;
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.IrisSettings;
|
||||
import com.volmit.iris.generator.legacy.nms.INMS;
|
||||
import com.volmit.iris.nms.INMS;
|
||||
import com.volmit.iris.object.*;
|
||||
import com.volmit.iris.scaffold.IrisWorldCreator;
|
||||
import com.volmit.iris.scaffold.engine.IrisAccess;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.volmit.iris.manager.command;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.generator.legacy.nms.INMS;
|
||||
import com.volmit.iris.nms.INMS;
|
||||
import com.volmit.iris.object.IrisDimension;
|
||||
import com.volmit.iris.scaffold.IrisWorldCreator;
|
||||
import com.volmit.iris.scaffold.engine.IrisAccess;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.volmit.iris.generator.legacy.nms;
|
||||
package com.volmit.iris.nms;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.IrisSettings;
|
||||
import com.volmit.iris.generator.legacy.nms.v1X.NMSBinding1X;
|
||||
import com.volmit.iris.nms.v1X.NMSBinding1X;
|
||||
import com.volmit.iris.util.KMap;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.volmit.iris.generator.legacy.nms;
|
||||
package com.volmit.iris.nms;
|
||||
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.volmit.iris.generator.legacy.nms;
|
||||
package com.volmit.iris.nms;
|
||||
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.volmit.iris.generator.legacy.nms.v1X;
|
||||
package com.volmit.iris.nms.v1X;
|
||||
|
||||
import com.volmit.iris.generator.legacy.atomics.AtomicCache;
|
||||
import com.volmit.iris.generator.legacy.nms.INMSBinding;
|
||||
import com.volmit.iris.generator.legacy.nms.INMSCreator;
|
||||
import com.volmit.iris.nms.INMSBinding;
|
||||
import com.volmit.iris.nms.INMSCreator;
|
||||
|
||||
public class NMSBinding1X implements INMSBinding
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
package com.volmit.iris.generator.legacy.nms.v1X;
|
||||
package com.volmit.iris.nms.v1X;
|
||||
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
|
||||
import com.volmit.iris.generator.legacy.nms.INMSCreator;
|
||||
import com.volmit.iris.nms.INMSCreator;
|
||||
|
||||
class NMSCreator1X implements INMSCreator
|
||||
{
|
||||
@@ -93,6 +93,11 @@ public class IrisBiome extends IrisRegistrant implements IRare
|
||||
@Desc("The raw derivative of this biome. This is required or the terrain will not properly generate. Use any vanilla biome type. Look in examples/biome-list.txt")
|
||||
private Biome derivative = Biome.THE_VOID;
|
||||
|
||||
@Required
|
||||
@DontObfuscate
|
||||
@Desc("Override the derivative when vanilla places structures to this derivative. This is useful for example if you have an ocean biome, but you have set the derivative to desert to get a brown-ish color. To prevent desert structures from spawning on top of your ocean, you can set your vanillaDerivative to ocean, to allow for vanilla structures. Not defining this value will simply select the derivative.")
|
||||
private Biome vanillaDerivative = null;
|
||||
|
||||
@ArrayType(min = 1, type = Biome.class)
|
||||
@DontObfuscate
|
||||
@Desc("You can instead specify multiple biome derivatives to randomly scatter colors in this biome")
|
||||
@@ -185,6 +190,11 @@ public class IrisBiome extends IrisRegistrant implements IRare
|
||||
private final transient AtomicCache<KList<CNG>> layerHeightGenerators = new AtomicCache<>();
|
||||
private final transient AtomicCache<KList<CNG>> layerSeaHeightGenerators = new AtomicCache<>();
|
||||
|
||||
public Biome getVanillaDerivative()
|
||||
{
|
||||
return vanillaDerivative == null ? derivative : vanillaDerivative;
|
||||
}
|
||||
|
||||
public double getGenLinkMax(String loadKey)
|
||||
{
|
||||
Integer v = genCacheMax.aquire(() ->
|
||||
|
||||
Reference in New Issue
Block a user