Added Pattern.next(int, int, int).

This method can be used to avoid creating short-lived vectors in tight loops.
This commit is contained in:
TomyLobo
2011-10-31 22:00:53 +01:00
parent 8610dc2c89
commit 02a70cca4a
4 changed files with 33 additions and 4 deletions

View File

@ -37,4 +37,13 @@ public interface Pattern {
* @return
*/
public BaseBlock next(Vector pos);
/**
* Get a block for a position. This return value of this method does
* not have to be consistent for the same position.
*
* @param pos
* @return
*/
public BaseBlock next(int x, int y, int z);
}