Deprecation notice for callItemUpdateStateEvent(allowFood, hand)

This commit is contained in:
Arne Dalhuisen 2021-05-23 20:36:51 +02:00
parent e3c41a254d
commit 1da372eb3b
1 changed files with 3 additions and 0 deletions

View File

@ -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;