Height getter

This commit is contained in:
Daniel Mills 2021-08-08 07:52:35 -04:00
parent b081bbb444
commit cc6a7a6a72
2 changed files with 9 additions and 0 deletions

View File

@ -468,4 +468,9 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
} }
double getGeneratedPerSecond(); double getGeneratedPerSecond();
default int getHeight()
{
return getWorld().getHeight();
}
} }

View File

@ -105,4 +105,8 @@ public class IrisWorld {
return (KList<? extends T>) NO_ENTITIES; return (KList<? extends T>) NO_ENTITIES;
} }
public int getHeight() {
return maxHeight - minHeight;
}
} }