Skip to content

Commit

Permalink
remove test plugin diff accidentally committed
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker committed Dec 22, 2024
1 parent 4c6ea84 commit c31d95e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -14,10 +10,6 @@ public void onEnable() {
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());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,13 @@

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);
});
});
}

}

0 comments on commit c31d95e

Please sign in to comment.