public static interface UseItemStackEvent.Replace extends UseItemStackEvent, Cancellable
UseItemStackEvent.Finish, when the item in the entity's hand is replaced.
For example, this event is called to decrement the amount of food in the stack being eaten.
In Vanilla, setting the remaining duration for this event is ignored.
Cancelling the event, or marking the transaction as invalid, will leave the entity's hand untouched.
|Modifier and Type||Method and Description|
getItemStackInUse, getOriginalRemainingDuration, getRemainingDuration, setRemainingDuration