feat(crafting): support cancellable Q and Ctrl-Q delivery
This commit is contained in:
1 parent
14fc0dbde0
commit
fcf93fa966
8 files changed
+625
-3
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package io.papermc.paper.plugin.manager;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
/** Test-only access to the pinned package-private dispatcher; never included in the plugin artifact. */
|
||||
public final class NativeEventDispatcher implements Consumer<Event> {
|
||||
private final PaperEventManager manager;
|
||||
|
||||
public NativeEventDispatcher(Server server) { manager = new PaperEventManager(server); }
|
||||
|
||||
@Override public void accept(Event event) { manager.callEvent(event); }
|
||||
}
|
||||
Reference in new issue
Block a user