Class StockMarketOffer
java.lang.Object
org.rspeer.game.component.stockmarket.StockMarketOffer
- All Implemented Interfaces:
StockMarketable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.component.StockMarketable
StockMarketable.Type
-
Constructor Summary
ConstructorDescriptionStockMarketOffer
(StockMarketable.Type type, int itemId, IntToIntFunction price, IntSupplier quantity) -
Method Summary
-
Constructor Details
-
StockMarketOffer
public StockMarketOffer(StockMarketable.Type type, int itemId, IntToIntFunction price, IntSupplier quantity)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceStockMarketable
-
createTransaction
-
createAndCollectTransaction
public CompletableFuture<StockMarketTransaction> createAndCollectTransaction(StockMarketTransaction.CollectionAction action) -
createAndCollectAll
-
getTransaction
-