Fix the level API events

This commit is contained in:
James Seibel
2022-09-10 17:10:48 -05:00
parent 0a70ec9986
commit ba701eb014
7 changed files with 51 additions and 46 deletions
@@ -20,12 +20,13 @@
package com.seibel.lod.core.api.external.coreImplementations.interfaces.wrappers.world;
import com.seibel.lod.core.api.external.coreImplementations.interfaces.wrappers.ICoreDhApiUnsafeWrapper;
import com.seibel.lod.core.wrapperInterfaces.world.ILevelWrapper;
/**
* Can be either a Server or Client level.
*
* @author James Seibel
* @version 2022-9-7
* @version 2022-9-10
*/
public interface ICoreDhApiLevelWrapper extends ICoreDhApiUnsafeWrapper
{
@@ -32,7 +32,7 @@ import com.seibel.lod.core.wrapperInterfaces.chunk.IChunkWrapper;
* Can be either a Server world or a Client world.
*
* @author James Seibel
* @version 3-5-2022
* @version 2022-9-10
*/
public interface ILevelWrapper extends IBindable
{
@@ -48,12 +48,9 @@ public interface ILevelWrapper extends IBindable
int getHeight();
default short getMinHeight()
{
return 0;
}
default short getMinHeight() { return 0; }
default IChunkWrapper tryGetChunk(DHChunkPos pos) {return null;}
default IChunkWrapper tryGetChunk(DHChunkPos pos) { return null; }
boolean hasChunkLoaded(int chunkX, int chunkZ);