2016-02-29 22:32:46 +01:00
|
|
|
package org.bukkit;
|
|
|
|
|
|
|
|
import net.minecraft.server.BiomeBase;
|
2018-08-26 04:00:00 +02:00
|
|
|
import net.minecraft.server.IRegistry;
|
2016-02-29 22:32:46 +01:00
|
|
|
import org.bukkit.block.Biome;
|
|
|
|
import org.bukkit.craftbukkit.block.CraftBlock;
|
2016-02-29 23:49:29 +01:00
|
|
|
import org.bukkit.support.AbstractTestingBase;
|
2016-02-29 22:32:46 +01:00
|
|
|
import org.junit.Assert;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
2016-02-29 23:49:29 +01:00
|
|
|
public class BiomeTest extends AbstractTestingBase {
|
2016-02-29 22:32:46 +01:00
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testBukkitToMinecraft() {
|
|
|
|
for (Biome biome : Biome.values()) {
|
|
|
|
Assert.assertNotNull("No NMS mapping for " + biome, CraftBlock.biomeToBiomeBase(biome));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testMinecraftToBukkit() {
|
2018-08-26 04:00:00 +02:00
|
|
|
for (Object biome : IRegistry.BIOME) {
|
2016-06-09 03:43:49 +02:00
|
|
|
Assert.assertNotNull("No Bukkit mapping for " + biome, CraftBlock.biomeBaseToBiome((BiomeBase) biome));
|
2016-02-29 22:32:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|