Contents
Class FixedTradeSlot
java.lang.Object
com.hypixel.hytale.builtin.adventure.shop.barter.TradeSlot
com.hypixel.hytale.builtin.adventure.shop.barter.FixedTradeSlot
A trade slot that always shows a specific trade.
JSON format:
{
"Type": "Fixed",
"Trade": {
"Output": { "ItemId": "...", "Quantity": 1 },
"Input": [{ "ItemId": "...", "Quantity": 1 }],
"Stock": 10
}
}
-
Field Summary
FieldsFields inherited from class TradeSlot
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CODEC
-
-
Constructor Details
-
FixedTradeSlot
-
-
Method Details
-
getTrade
-
resolve
-
getSlotCount
public int getSlotCount()Description copied from class:TradeSlotGet the number of trade slots this definition will produce.- Specified by:
getSlotCountin classTradeSlot- Returns:
- Number of trades this slot will resolve to
-
toString
-