mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-26 18:21:35 +01:00
b3a8254758
By: md_5 <git@md-5.net>
20 lines
611 B
Java
20 lines
611 B
Java
package org.bukkit;
|
|
|
|
import net.minecraft.core.IRegistry;
|
|
import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
|
import org.bukkit.support.AbstractTestingBase;
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
public class GameEventTest extends AbstractTestingBase {
|
|
|
|
@Test
|
|
public void toBukkit() {
|
|
for (net.minecraft.world.level.gameevent.GameEvent nms : IRegistry.GAME_EVENT) {
|
|
GameEvent bukkit = GameEvent.getByKey(CraftNamespacedKey.fromMinecraft(IRegistry.GAME_EVENT.getKey(nms)));
|
|
|
|
Assert.assertNotNull("Bukkit should not be null " + nms, bukkit);
|
|
}
|
|
}
|
|
}
|