Have upperY and lowerY on GroundFindingFunction be set via mutators.

This commit is contained in:
sk89q
2014-03-01 12:03:10 -08:00
parent 6f116cd564
commit 504c7a5ff1
6 changed files with 28 additions and 23 deletions

View File

@@ -44,11 +44,9 @@ public class FloraPlacer extends GroundGenerator {
* Create a new instance.
*
* @param editSession the edit session
* @param lowerY the lower Y
* @param upperY the upper Y (lowerY <= upperY)
*/
public FloraPlacer(EditSession editSession, int lowerY, int upperY) {
super(editSession, lowerY, upperY);
public FloraPlacer(EditSession editSession) {
super(editSession);
this.editSession = editSession;
}

View File

@@ -40,11 +40,9 @@ public class ForestGenerator extends GroundGenerator {
*
* @param editSession the edit session
* @param treeGenerator a tree generator
* @param lowerY the lower Y boundary to end the ground search from
* @param upperY the upper Y boundary to start the ground search at
*/
public ForestGenerator(EditSession editSession, TreeGenerator treeGenerator, int lowerY, int upperY) {
super(editSession, lowerY, upperY);
public ForestGenerator(EditSession editSession, TreeGenerator treeGenerator) {
super(editSession);
this.editSession = editSession;
this.treeGenerator = treeGenerator;
}

View File

@@ -34,11 +34,9 @@ public abstract class GroundGenerator extends GroundFindingFunction {
* Create a new instance.
*
* @param editSession the edit session
* @param lowerY the lower Y
* @param upperY the upper Y (lowerY <= upperY)
*/
protected GroundGenerator(EditSession editSession, int lowerY, int upperY) {
super(editSession, lowerY, upperY);
protected GroundGenerator(EditSession editSession) {
super(editSession);
}
/**