Skip to content

Commit

Permalink
More WorldGen stuff. Addresses #21 and #124
Browse files Browse the repository at this point in the history
  • Loading branch information
damagefilter committed Aug 2, 2013
1 parent 6bb4137 commit 4a908ca
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/net/canarymod/api/world/Chunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,23 @@ public interface Chunk {
* @return {@code true} if modified; {@code false} otherwise
*/
public boolean isModified();

/**
* Generates the skylight map for this Chunk.
*/
public void generateSkyLightMap();

/**
* Updates the skylight map for this chunk
* @param force Force light update
*/
public void updateSkyLightMap(boolean force);

/**
* Re-calculates the light at the given coordinates within this chunk.
* Coordinates are world coordinates
* @param x
* @param z
*/
public void relightBlock(int x, int y, int z);
}

0 comments on commit 4a908ca

Please sign in to comment.