mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Deprecation notice for callItemUpdateStateEvent(allowFood, hand)
This commit is contained in:
parent
e3c41a254d
commit
1da372eb3b
@ -2299,7 +2299,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
* @param allowFood true if food should be updated, false otherwise
|
* @param allowFood true if food should be updated, false otherwise
|
||||||
* @return the called {@link ItemUpdateStateEvent},
|
* @return the called {@link ItemUpdateStateEvent},
|
||||||
* null if there is no item to update the state
|
* 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) {
|
public @Nullable ItemUpdateStateEvent callItemUpdateStateEvent(boolean allowFood, @Nullable Hand hand) {
|
||||||
if (hand == null)
|
if (hand == null)
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user