mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 16:42:03 -07:00
Finish converting most of the undeprecated api to jspecify
This commit is contained in:
@@ -16,11 +16,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+import org.bukkit.block.TileState;
|
||||
+import org.bukkit.inventory.BlockInventoryHolder;
|
||||
+import org.bukkit.inventory.Inventory;
|
||||
+import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
+import org.jspecify.annotations.NullMarked;
|
||||
+
|
||||
+/**
|
||||
+ * Represents a {@link TileState} block that has an inventory.
|
||||
+ */
|
||||
+@NullMarked
|
||||
+public interface TileStateInventoryHolder extends TileState, BlockInventoryHolder {
|
||||
+
|
||||
+ /**
|
||||
@@ -35,7 +36,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return the inventory
|
||||
+ */
|
||||
+ @Override
|
||||
+ @NonNull Inventory getInventory();
|
||||
+ Inventory getInventory();
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the captured inventory snapshot of this container.
|
||||
@@ -47,7 +48,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ *
|
||||
+ * @return the captured inventory snapshot
|
||||
+ */
|
||||
+ @NonNull Inventory getSnapshotInventory();
|
||||
+ Inventory getSnapshotInventory();
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/block/ChiseledBookshelf.java b/src/main/java/org/bukkit/block/ChiseledBookshelf.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
|
Reference in New Issue
Block a user