Class CommandCauses
java.lang.Object
net.okocraft.box.feature.command.event.stock.CommandCauses
A class for implementing
StockEvent.Cause.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAStockEvent.Causeimplementation that indicates increasing stock by an admin.static final recordAStockEvent.Causeimplementation that indicates resetting stock by an admin.static final recordAStockEvent.Causeimplementation that indicates setting stock by an admin.static final recordAStockEvent.Causeimplementation that indicates decreasing stock by an admin.static final recordAStockEvent.Causeimplementation that indicates giving items to the other player.static final recordAStockEvent.Causeimplementation that indicates receiving items from the other player. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StockEvent.CauseadminResetAll(@NotNull CommandSender sender) Captures the sender who confirmed a full reset.static @NotNull StockEvent.Causestatic @NotNull StockEvent.Cause
-
Method Details
-
deposit
-
withdraw
-
adminResetAll
Captures the sender who confirmed a full reset.- Parameters:
sender- the confirming command sender- Returns:
- the full reset cause, distinct from a single-item reset
-