mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-08-06 23:59:30 +00:00
Have upperY and lowerY on GroundFindingFunction be set via mutators.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user