Added getLazyBlock() to Extent for performance.

This commit is contained in:
sk89q
2014-03-31 18:22:44 -07:00
parent dcf35e5312
commit fa24eb60fa
11 changed files with 224 additions and 109 deletions

View File

@ -93,6 +93,7 @@ public abstract class LocalWorld implements World, Extent {
* @param pt
* @return
*/
@Deprecated
public abstract int getBlockType(Vector pt);
/**
@ -162,6 +163,7 @@ public abstract class LocalWorld implements World, Extent {
* @param pt
* @return
*/
@Deprecated
public abstract int getBlockData(Vector pt);
/**
@ -548,6 +550,11 @@ public abstract class LocalWorld implements World, Extent {
return successful;
}
@Override
public BaseBlock getLazyBlock(Vector position) {
return getBlock(position);
}
@Override
public BaseBlock getBlock(Vector pt) {
checkLoadedChunk(pt);