mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-11 10:16:34 +00:00
Fixes
This commit is contained in:
@@ -26,8 +26,6 @@ import java.util.Arrays;
|
||||
public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootProvider, BlockUpdater, Renderer, Hotloadable {
|
||||
public void close();
|
||||
|
||||
public int getCurrentlyGenerating();
|
||||
|
||||
public boolean isClosed();
|
||||
|
||||
public EngineWorldManager getWorldManager();
|
||||
@@ -42,6 +40,8 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
|
||||
|
||||
public void setMinHeight(int min);
|
||||
|
||||
public void recycle();
|
||||
|
||||
public int getIndex();
|
||||
|
||||
public int getMinHeight();
|
||||
@@ -56,7 +56,7 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
|
||||
|
||||
default void save()
|
||||
{
|
||||
getParallax().saveAll();
|
||||
getParallax().saveAll();
|
||||
}
|
||||
|
||||
default void saveNow()
|
||||
|
||||
@@ -784,6 +784,11 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
|
||||
@Override
|
||||
public boolean isFailing() {
|
||||
if(getComposite() == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return getComposite().isFailing();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@ public interface EngineCompound extends Listener, Hotloadable, DataProvider
|
||||
|
||||
public World getWorld();
|
||||
|
||||
public int getCurrentlyGeneratingEngines();
|
||||
|
||||
public void printMetrics(CommandSender sender);
|
||||
|
||||
public int getSize();
|
||||
@@ -67,6 +65,14 @@ public interface EngineCompound extends Listener, Hotloadable, DataProvider
|
||||
return getEngine(getSize() - 1);
|
||||
}
|
||||
|
||||
public default void recycle()
|
||||
{
|
||||
for(int i = 0; i < getSize(); i++)
|
||||
{
|
||||
getEngine(i).recycle();
|
||||
}
|
||||
}
|
||||
|
||||
public default void save()
|
||||
{
|
||||
saveEngineMetadata();
|
||||
|
||||
Reference in New Issue
Block a user