aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-plugin
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-12-22 11:44:49 -0800
committerJake Potrebic <[email protected]>2024-12-22 11:44:49 -0800
commitc31d95eccb5f8fccf293333d0fecbd986bd9061d (patch)
tree1855514d71e158cf8eb382994d5477a0887a8019 /test-plugin
parent4c6ea8416baa16c741737310571f6cac08271417 (diff)
downloadPaper-c31d95eccb5f8fccf293333d0fecbd986bd9061d.tar.gz
Paper-c31d95eccb5f8fccf293333d0fecbd986bd9061d.zip
remove test plugin diff accidentally committed
Diffstat (limited to 'test-plugin')
-rw-r--r--test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java8
-rw-r--r--test-plugin/src/main/java/io/papermc/testplugin/TestPluginBootstrap.java17
2 files changed, 0 insertions, 25 deletions
diff --git a/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java b/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java
index c640638154..671c37fa40 100644
--- a/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java
+++ b/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java
@@ -1,9 +1,5 @@
package io.papermc.testplugin;
-import io.papermc.paper.registry.RegistryAccess;
-import io.papermc.paper.registry.RegistryKey;
-import org.bukkit.Art;
-import org.bukkit.Registry;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
@@ -14,10 +10,6 @@ public final class TestPlugin extends JavaPlugin implements Listener {
this.getServer().getPluginManager().registerEvents(this, this);
// io.papermc.testplugin.brigtests.Registration.registerViaOnEnable(this);
-
- final Registry<Art> registry = RegistryAccess.registryAccess().getRegistry(RegistryKey.PAINTING_VARIANT);
- final Art art = registry.get(TestPluginBootstrap.NEW);
- System.out.println(art.getKey());
}
}
diff --git a/test-plugin/src/main/java/io/papermc/testplugin/TestPluginBootstrap.java b/test-plugin/src/main/java/io/papermc/testplugin/TestPluginBootstrap.java
index 5d3ec9f604..fe2b287b25 100644
--- a/test-plugin/src/main/java/io/papermc/testplugin/TestPluginBootstrap.java
+++ b/test-plugin/src/main/java/io/papermc/testplugin/TestPluginBootstrap.java
@@ -2,30 +2,13 @@ package io.papermc.testplugin;
import io.papermc.paper.plugin.bootstrap.BootstrapContext;
import io.papermc.paper.plugin.bootstrap.PluginBootstrap;
-import io.papermc.paper.registry.TypedKey;
-import io.papermc.paper.registry.event.RegistryEvents;
-import io.papermc.paper.registry.keys.PaintingVariantKeys;
-import net.kyori.adventure.key.Key;
-import org.bukkit.Art;
import org.jetbrains.annotations.NotNull;
-import static net.kyori.adventure.text.Component.text;
-
public class TestPluginBootstrap implements PluginBootstrap {
- static final TypedKey<Art> NEW = PaintingVariantKeys.create(Key.key("test:test"));
@Override
public void bootstrap(@NotNull BootstrapContext context) {
// io.papermc.testplugin.brigtests.Registration.registerViaBootstrap(context);
-
- context.getLifecycleManager().registerEventHandler(RegistryEvents.PAINTING_VARIANT.freeze(), event -> {
- event.registry().register(NEW, builder -> {
- builder.assetId(Key.key("wind"))
- .author(text("ME"))
- .width(2)
- .height(2);
- });
- });
}
}