mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-14 21:08:35 +00:00
Added getLazyBlock() to Extent for performance.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user