Removed more deprecated code

This commit is contained in:
Matthew Miller
2018-06-19 17:03:09 +10:00
parent 416480c16d
commit 66d70f00e7
19 changed files with 107 additions and 296 deletions

View File

@ -164,32 +164,11 @@ public class TreeGenerator {
}
}
private TreeGenerator() {
}
private static final Random RANDOM = new Random();
private TreeType type;
/**
* Construct the tree generator with a tree type.
*
* @param type the tree type
*/
@Deprecated
public TreeGenerator(TreeType type) {
this.type = type;
}
/**
* Generate a tree.
*
* @param editSession the edit session
* @param position the position to generate the tree at
* @return true if generation was successful
* @throws MaxChangedBlocksException
*/
public boolean generate(EditSession editSession, Vector position) throws MaxChangedBlocksException {
return type.generate(editSession, position);
}
/**
* Makes a terrible looking pine tree.
*