public class BarterShopAsset implementsJsonAssetWithMap,DefaultAssetMap,BarterShopAsset>>
Class BarterShopAsset. Provides bartershopasset functionality for the Hytale server.
java.lang.Object > BarterShopAsset
Field Summary
extraData
protected
AssetExtraInfo.Data
extraData
Field extraData.
id
protected
String
id
Field id.
displayNameKey
protected
String
displayNameKey
Field displayNameKey.
refreshInterval
protected
RefreshInterval
refreshInterval
Field refreshInterval.
trades
protected
BarterTrade[]
trades
Field trades.
tradeSlots
protected
TradeSlot[]
tradeSlots
Field tradeSlots.
restockHour
protected
Integer
restockHour
Field restockHour.
Method Detail
getAssetStore
public
>
getAssetStore
()
Method getAssetStore.
getAssetMap
public
BarterShopAsset>
getAssetMap
()
Method getAssetMap.
BarterShopAsset
public
public
BarterShopAsset
(final String id, final String displayNameKey, final RefreshInterval refreshInterval, final BarterTrade[] trades, final TradeSlot[] tradeSlots, @Nullable final Integer restockHour)
Method BarterShopAsset.
- Parameters:
final Stringidfinal StringdisplayNameKeyfinal RefreshIntervalrefreshIntervalfinal BarterTrade[]tradesfinal TradeSlot[]tradeSlots@Nullable final IntegerrestockHour
getId
public
String
getId
()
Method getId.
getDisplayNameKey
public
String
getDisplayNameKey
()
Method getDisplayNameKey.
getTrades
public
BarterTrade[]
getTrades
()
Method getTrades.
getTradeSlots
public
TradeSlot[]
getTradeSlots
()
Method getTradeSlots.
hasTradeSlots
public
boolean
hasTradeSlots
()
Method hasTradeSlots.
getRestockHour
public
int
getRestockHour
()
Method getRestockHour.
toString
public
String
toString
()
Method toString.
KeyedCodec
public
new
KeyedCodec
("RefreshInterval", RefreshInterval.CODEC)
Method KeyedCodec.
- Parameters:
"RefreshInterval""RefreshInterval"RefreshInterval.CODECRefreshInterval.CODEC