Height getter

This commit is contained in:
Daniel Mills committed 2021-08-08 07:52:35 -04:00
1 parent b081bbb444
commit cc6a7a6a72
2 files changed
+9

No files matched your search

@@ -468,4 +468,9 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
}
double getGeneratedPerSecond();
default int getHeight()
{
return getWorld().getHeight();
}
}
@@ -105,4 +105,8 @@ public class IrisWorld {
return (KList<? extends T>) NO_ENTITIES;
}
public int getHeight() {
return maxHeight - minHeight;
}
}