From 34e6477727488c92e8afd244b00f99f0f997d37e Mon Sep 17 00:00:00 2001 From: Flo0 Date: Sat, 31 Aug 2024 17:36:28 +0200 Subject: [PATCH] Added lenient upper bound to type arguments --- src/main/java/org/bukkit/inventory/Inventory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/inventory/Inventory.java b/src/main/java/org/bukkit/inventory/Inventory.java index 73df9103..ce830029 100644 --- a/src/main/java/org/bukkit/inventory/Inventory.java +++ b/src/main/java/org/bukkit/inventory/Inventory.java @@ -152,7 +152,7 @@ public interface Inventory extends Iterable { * @param removalStrategy A function that determines how many items should be removed from a slot * @return An int representing the amount of items removed from the inventory */ - public int removeItems(@NotNull BiFunction removalStrategy); + public int removeItems(@NotNull BiFunction removalStrategy); /** * Removes ItemStacks from the inventory, based on the given filter. @@ -170,7 +170,7 @@ public interface Inventory extends Iterable { * will be removed * @return An int representing the amount of items removed */ - public int removeItems(int amount, @NotNull Predicate filter); + public int removeItems(int amount, @NotNull Predicate filter); /** * Removes ItemStacks from the inventory, based on the given filter. @@ -187,7 +187,7 @@ public interface Inventory extends Iterable { * will be removed * @return An int representing the amount of items removed */ - public int removeItems(@NotNull Predicate filter); + public int removeItems(@NotNull Predicate filter); /** * Returns all ItemStacks from the inventory