BukkitWorld extends AbstractWorld { public static TreeType toBukkitTreeType(TreeGenerator.TreeType type) { return treeTypeMapping.get(type); } BukkitWorld(World world); @Override List<com.sk89q.worldedit.entity.Entity> getEntities(Region region); @Override List<com.sk89q.worldedit.entity.Entity> getEntities(); World getWorld(); @Override String getName(); @Override String getId(); @Override Path getStoragePath(); @Override int getBlockLightLevel(BlockVector3 pt); @Override boolean regenerate(Region region, EditSession editSession); @Override boolean clearContainerBlockContents(BlockVector3 pt); static TreeType toBukkitTreeType(TreeGenerator.TreeType type); @Override boolean generateTree(TreeGenerator.TreeType type, EditSession editSession, BlockVector3 pt); @Override void dropItem(Vector3 pt, BaseItemStack item); @Override void checkLoadedChunk(BlockVector3 pt); @Override boolean equals(Object other); @Override int hashCode(); @Override int getMaxY(); @SuppressWarnings("deprecation") @Override void fixAfterFastMode(Iterable<BlockVector2> chunks); @Override boolean playEffect(Vector3 position, int type, int data); @Override WeatherType getWeather(); @Override long getRemainingWeatherDuration(); @Override void setWeather(WeatherType weatherType); @Override void setWeather(WeatherType weatherType, long duration); @Override BlockVector3 getSpawnPosition(); @Override void simulateBlockMine(BlockVector3 pt); @Override com.sk89q.worldedit.world.block.BlockState getBlock(BlockVector3 position); @Override boolean setBlock(BlockVector3 position, B block, SideEffectSet sideEffects); @Override BaseBlock getFullBlock(BlockVector3 position); @Override Set<SideEffect> applySideEffects(BlockVector3 position, com.sk89q.worldedit.world.block.BlockState previousType,
            SideEffectSet sideEffectSet); @Override boolean useItem(BlockVector3 position, BaseItem item, Direction face); @Override boolean fullySupports3DBiomes(); @SuppressWarnings("deprecation") @Override BiomeType getBiome(BlockVector3 position); @SuppressWarnings("deprecation") @Override boolean setBiome(BlockVector3 position, BiomeType biome); @Override boolean setBlock(int x, int y, int z, T block); @Override boolean setTile(int x, int y, int z, CompoundTag tile); @Override boolean setBiome(int x, int y, int z, BiomeType biome); @Override void refreshChunk(int chunkX, int chunkZ); @Override IChunkGet get(int chunkX, int chunkZ); @Override void sendFakeChunk(Player player, ChunkPacket packet);  }
@Test public void testTreeTypeMapping() { for (TreeGenerator.TreeType type : TreeGenerator.TreeType.values()) { assertNotNull(BukkitWorld.toBukkitTreeType(type), "No mapping for: " + type); } }