geforkt von Mirrors/FastAsyncWorldEdit
Make some minor corrections in TreeGenerator.
Dieser Commit ist enthalten in:
Ursprung
270e988b60
Commit
e6662d7519
@ -39,17 +39,17 @@ public class TreeGenerator {
|
|||||||
public enum TreeType {
|
public enum TreeType {
|
||||||
TREE("Oak tree", "oak", "tree", "regular"),
|
TREE("Oak tree", "oak", "tree", "regular"),
|
||||||
BIG_TREE("Large oak tree", "largeoak", "bigoak", "big", "bigtree"),
|
BIG_TREE("Large oak tree", "largeoak", "bigoak", "big", "bigtree"),
|
||||||
REDWOOD("Spruce", "spruce", "redwood", "sequoia", "sequoioideae"),
|
REDWOOD("Spruce tree", "spruce", "redwood", "sequoia", "sequoioideae"),
|
||||||
TALL_REDWOOD("Tall spruce", "tallspruce", "bigspruce", "tallredwood", "tallsequoia", "tallsequoioideae"),
|
TALL_REDWOOD("Tall spruce tree", "tallspruce", "bigspruce", "tallredwood", "tallsequoia", "tallsequoioideae"),
|
||||||
BIRCH("Birch", "birch", "white", "whitebark"),
|
BIRCH("Birch tree", "birch", "white", "whitebark"),
|
||||||
PINE("Pine", "pine") {
|
PINE("Pine tree", "pine") {
|
||||||
@Override
|
@Override
|
||||||
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
||||||
makePineTree(editSession, pos);
|
makePineTree(editSession, pos);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
RANDOM_REDWOOD("Random spruce", "randspruce", "randredwood", "randomredwood", "anyredwood") {
|
RANDOM_REDWOOD("Random spruce tree", "randspruce", "randredwood", "randomredwood", "anyredwood") {
|
||||||
@Override
|
@Override
|
||||||
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
||||||
TreeType[] choices = new TreeType[] {
|
TreeType[] choices = new TreeType[] {
|
||||||
@ -58,23 +58,23 @@ public class TreeGenerator {
|
|||||||
return choices[TreeGenerator.RANDOM.nextInt(choices.length)].generate(editSession, pos);
|
return choices[TreeGenerator.RANDOM.nextInt(choices.length)].generate(editSession, pos);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
JUNGLE("Jungle", "jungle"),
|
JUNGLE("Jungle tree", "jungle"),
|
||||||
SMALL_JUNGLE("Small jungle", "shortjungle", "smalljungle"),
|
SMALL_JUNGLE("Small jungle tree", "shortjungle", "smalljungle"),
|
||||||
SHORT_JUNGLE("Short jungle") {
|
SHORT_JUNGLE("Short jungle tree") {
|
||||||
@Override
|
@Override
|
||||||
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
||||||
return SMALL_JUNGLE.generate(editSession, pos);
|
return SMALL_JUNGLE.generate(editSession, pos);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
JUNGLE_BUSH("Jungle bush", "junglebush", "jungleshrub"),
|
JUNGLE_BUSH("Jungle bush", "junglebush", "jungleshrub"),
|
||||||
RED_MUSHROOM("Red Mushroom", "redmushroom", "redgiantmushroom"),
|
RED_MUSHROOM("Red mushroom", "redmushroom", "redgiantmushroom"),
|
||||||
BROWN_MUSHROOM("Brown Mushroom", "brownmushroom", "browngiantmushroom"),
|
BROWN_MUSHROOM("Brown mushroom", "brownmushroom", "browngiantmushroom"),
|
||||||
SWAMP("Swamp", "swamp", "swamptree"),
|
SWAMP("Swamp tree", "swamp", "swamptree"),
|
||||||
ACACIA("Acacia", "acacia"),
|
ACACIA("Acacia tree", "acacia"),
|
||||||
DARK_OAK("Dark Oak", "darkoak"),
|
DARK_OAK("Dark oak tree", "darkoak"),
|
||||||
MEGA_REDWOOD("Mega Redwood", "megaredwood"),
|
MEGA_REDWOOD("Large spruce tree", "largespruce", "megaredwood"),
|
||||||
TALL_BIRCH("Tall Birch", "tallbirch"),
|
TALL_BIRCH("Tall birch tree", "tallbirch"),
|
||||||
RANDOM("Random", "rand", "random") {
|
RANDOM("Random tree", "rand", "random") {
|
||||||
@Override
|
@Override
|
||||||
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
public boolean generate(EditSession editSession, Vector pos) throws MaxChangedBlocksException {
|
||||||
TreeType[] choices = new TreeType[] {
|
TreeType[] choices = new TreeType[] {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren