mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
Finish converting all events to jspecify annotations
This commit is contained in:
@@ -13,30 +13,31 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@@ -0,0 +0,0 @@
|
||||
+package io.papermc.paper.event.player;
|
||||
+
|
||||
+import org.bukkit.inventory.InventoryView;
|
||||
+import org.bukkit.inventory.CartographyInventory;
|
||||
+import org.bukkit.event.inventory.ClickType;
|
||||
+import org.bukkit.event.inventory.InventoryType;
|
||||
+import org.bukkit.event.inventory.InventoryAction;
|
||||
+import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
+import org.jetbrains.annotations.NotNull;
|
||||
+import org.bukkit.event.inventory.InventoryType;
|
||||
+import org.bukkit.inventory.CartographyInventory;
|
||||
+import org.bukkit.inventory.InventoryView;
|
||||
+import org.jetbrains.annotations.ApiStatus;
|
||||
+import org.jspecify.annotations.NullMarked;
|
||||
+
|
||||
+/**
|
||||
+ * Called when the recipe of an Item is completed inside a cartography table.
|
||||
+ */
|
||||
+@NullMarked
|
||||
+public class CartographyItemEvent extends InventoryClickEvent {
|
||||
+
|
||||
+ @ApiStatus.Internal
|
||||
+ public CartographyItemEvent(@NotNull InventoryView view, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action) {
|
||||
+ public CartographyItemEvent(final InventoryView view, final InventoryType.SlotType type, final int slot, final ClickType click, final InventoryAction action) {
|
||||
+ super(view, type, slot, click, action);
|
||||
+ }
|
||||
+
|
||||
+ @ApiStatus.Internal
|
||||
+ public CartographyItemEvent(@NotNull InventoryView view, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key) {
|
||||
+ public CartographyItemEvent(final InventoryView view, final InventoryType.SlotType type, final int slot, final ClickType click, final InventoryAction action, final int key) {
|
||||
+ super(view, type, slot, click, action, key);
|
||||
+ }
|
||||
+
|
||||
+ @NotNull
|
||||
+ @Override
|
||||
+ public CartographyInventory getInventory() {
|
||||
+ return (CartographyInventory) super.getInventory();
|
||||
|
Reference in New Issue
Block a user