geforkt von Mirrors/FastAsyncWorldEdit
feat: add new tree types to tree tool and brush (#2286)
* feat: add new tree types - implements #2197 * Remove nonsensical test case --------- Co-authored-by: Alexander Brandes <mc.cache@web.de>
Dieser Commit ist enthalten in:
Ursprung
79a2c14caa
Commit
51e238c352
@ -26,7 +26,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
|||||||
|
|
||||||
public class BukkitWorldTest {
|
public class BukkitWorldTest {
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testTreeTypeMapping() {
|
public void testTreeTypeMapping() {
|
||||||
for (TreeGenerator.TreeType type : TreeGenerator.TreeType.values()) {
|
for (TreeGenerator.TreeType type : TreeGenerator.TreeType.values()) {
|
||||||
assertNotNull(BukkitWorld.toBukkitTreeType(type), "No mapping for: " + type);
|
assertNotNull(BukkitWorld.toBukkitTreeType(type), "No mapping for: " + type);
|
||||||
|
@ -165,6 +165,9 @@ public final class TreeGenerator {
|
|||||||
}
|
}
|
||||||
//FAWE end
|
//FAWE end
|
||||||
},
|
},
|
||||||
|
MANGROVE("Mangrove tree", "mangrove"),
|
||||||
|
TALL_MANGROVE("Tall mangrove tree", "tall_mangrove"),
|
||||||
|
CHERRY("Cherry blossom", "cherry"),
|
||||||
RANDOM("Random tree", "rand", "random") {
|
RANDOM("Random tree", "rand", "random") {
|
||||||
@Override
|
@Override
|
||||||
public boolean generate(EditSession editSession, BlockVector3 pos) throws MaxChangedBlocksException {
|
public boolean generate(EditSession editSession, BlockVector3 pos) throws MaxChangedBlocksException {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren