Package com.llamalad7.mixinextras.sugar
Annotation Interface Cancellable
Allows you to receive a cancellable
CallbackInfo or CallbackInfoReturnable as appropriate
from any kind of injector. This allows you to optionally cancel the target method without being forced to use
@Inject.
The same CallbackInfos will be passed to every handler method in a chain of
@WrapOperations (i.e. any number of @WrapOperations and at most one inner
@Redirect / @ModifyConstant). This means you can choose to use the
CallbackInfo.isCancelled() and CallbackInfoReturnable.getReturnValue() methods to see if the wrapped
handler cancelled, so you can respond accordingly.
See the wiki article for more info.