From 1da372eb3bac479ccacfab4284254069d6fbc9fb Mon Sep 17 00:00:00 2001 From: Arne Dalhuisen <59421074+Bloepiloepi@users.noreply.github.com> Date: Sun, 23 May 2021 20:36:51 +0200 Subject: [PATCH] Deprecation notice for callItemUpdateStateEvent(allowFood, hand) --- src/main/java/net/minestom/server/entity/Player.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 8dc3290ec..846194261 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -2299,7 +2299,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable, * @param allowFood true if food should be updated, false otherwise * @return the called {@link ItemUpdateStateEvent}, * null if there is no item to update the state + * + * @deprecated Use {@link #callItemUpdateStateEvent(Hand)} instead */ + @Deprecated public @Nullable ItemUpdateStateEvent callItemUpdateStateEvent(boolean allowFood, @Nullable Hand hand) { if (hand == null) return null;