#624: Add an API for passing the heightmap to getHighestBlockAt* method
By: ysl3000 <yannicklamprecht@live.de>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user