mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
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>
This commit is contained in:
parent
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user