public static interface NucleusKitEvent.Redeem.Pre extends NucleusKitEvent.Redeem, CancelMessage
NucleusKitEvent.Redeem.Failed, NucleusKitEvent.Redeem.Post, NucleusKitEvent.Redeem.Pre
NucleusKitEvent.Redeem
Modifier and Type | Method and Description |
---|---|
void |
setCommandsToExecute(Collection<String> commandsToExecute)
Override the commands run by this kit for this redemption only.
|
void |
setStacksToRedeem(Collection<org.spongepowered.api.item.inventory.ItemStackSnapshot> stacksToRedeem)
Override the content of the kit for this redemption only.
|
getCommandsToExecute, getLastRedeemedTime, getName, getOriginalCommandsToExecute, getOriginalStacksToRedeem, getRedeemedKit, getStacksToRedeem
getTargetEntity
getCancelMessage, setCancelMessage
void setStacksToRedeem(@Nullable Collection<org.spongepowered.api.item.inventory.ItemStackSnapshot> stacksToRedeem)
stacksToRedeem
- the ItemStackSnapshot
s that should be
redeemed. Set to null to return to original behaviourvoid setCommandsToExecute(@Nullable Collection<String> commandsToExecute)
ConsoleSource
.commandsToExecute
- the commands that should be redeemed, using
{{player}}
as the player key.
Set to null to return to original behaviour.