#624: Add an API for passing the heightmap to getHighestBlockAt* method

By: ysl3000 <yannicklamprecht@live.de>
This commit is contained in:
CraftBukkit/Spigot
2020-02-09 10:31:07 +11:00
parent ab4f7e3436
commit 13b8a2aea1
3 changed files with 91 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
package org.bukkit.craftbukkit;
import org.bukkit.HeightMap;
import org.junit.Assert;
import org.junit.Test;
public class HeightMapTest {
@Test
public void heightMapConversionFromNMSToBukkitShouldNotThrowExceptio() {
for (net.minecraft.server.HeightMap.Type nmsHeightMapType : net.minecraft.server.HeightMap.Type.values()) {
Assert.assertNotNull("fromNMS", CraftHeightMap.fromNMS(nmsHeightMapType));
}
}
@Test
public void heightMapConversionFromBukkitToNMSShouldNotThrowExceptio() {
for (HeightMap bukkitHeightMap : HeightMap.values()) {
Assert.assertNotNull("toNMS", CraftHeightMap.toNMS(bukkitHeightMap));
}
}
}