From 9605d1f99b8df4482e59ab2cea926fa9cc367059 Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:35:51 +0200 Subject: [PATCH] Fix Inventory using org.bukkit.util.Consumer instead of java.util.function.Consumer --- .../java/xyz/xenondevs/invui/inventory/CompositeInventory.java | 2 +- .../src/main/java/xyz/xenondevs/invui/inventory/Inventory.java | 2 +- .../java/xyz/xenondevs/invui/inventory/ObscuredInventory.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/invui-core/src/main/java/xyz/xenondevs/invui/inventory/CompositeInventory.java b/invui-core/src/main/java/xyz/xenondevs/invui/inventory/CompositeInventory.java index 3a03e361..624c6b0a 100644 --- a/invui-core/src/main/java/xyz/xenondevs/invui/inventory/CompositeInventory.java +++ b/invui-core/src/main/java/xyz/xenondevs/invui/inventory/CompositeInventory.java @@ -1,7 +1,6 @@ package xyz.xenondevs.invui.inventory; import org.bukkit.inventory.ItemStack; -import org.bukkit.util.Consumer; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import xyz.xenondevs.invui.inventory.event.ItemPostUpdateEvent; @@ -10,6 +9,7 @@ import xyz.xenondevs.invui.util.Pair; import java.util.Collection; +import java.util.function.Consumer; /** * An {@link Inventory} which is composed of multiple other {@link Inventory Inventories}. diff --git a/invui-core/src/main/java/xyz/xenondevs/invui/inventory/Inventory.java b/invui-core/src/main/java/xyz/xenondevs/invui/inventory/Inventory.java index f4f1ddd4..f4ad38cc 100644 --- a/invui-core/src/main/java/xyz/xenondevs/invui/inventory/Inventory.java +++ b/invui-core/src/main/java/xyz/xenondevs/invui/inventory/Inventory.java @@ -3,7 +3,6 @@ import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; -import org.bukkit.util.Consumer; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import xyz.xenondevs.invui.InvUI; @@ -18,6 +17,7 @@ import xyz.xenondevs.invui.window.Window; import java.util.*; +import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Predicate; import java.util.logging.Level; diff --git a/invui-core/src/main/java/xyz/xenondevs/invui/inventory/ObscuredInventory.java b/invui-core/src/main/java/xyz/xenondevs/invui/inventory/ObscuredInventory.java index 5fbccc8f..320d06a0 100644 --- a/invui-core/src/main/java/xyz/xenondevs/invui/inventory/ObscuredInventory.java +++ b/invui-core/src/main/java/xyz/xenondevs/invui/inventory/ObscuredInventory.java @@ -1,7 +1,6 @@ package xyz.xenondevs.invui.inventory; import org.bukkit.inventory.ItemStack; -import org.bukkit.util.Consumer; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import xyz.xenondevs.invui.inventory.event.ItemPostUpdateEvent; @@ -9,6 +8,7 @@ import xyz.xenondevs.invui.inventory.event.UpdateReason; import java.util.ArrayList; +import java.util.function.Consumer; import java.util.function.IntPredicate; /**