classpublicPriority 3
BarterShopAsset
com.hypixel.hytale.builtin.adventure.shop.barter.BarterShopAsset
implements JsonAssetWithMap<String, DefaultAssetMap<String, BarterShopAsset>>
10
Methods
10
Public Methods
8
Fields
2
Constructors
Constants
AssetBuilderCodec<String, BarterShopAsset>CODEC= AssetBuilderCodec.builder(
BarterShopAsset.class,
BarterShopAsset::new,
...
intDEFAULT_RESTOCK_HOUR= 7
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(BarterShopAsset::getAssetStore))
Constructors
protected
BarterShopAsset()public
BarterShopAsset(String id, String displayNameKey, RefreshInterval refreshInterval, BarterTrade[] trades, TradeSlot[] tradeSlots, Integer restockHour)Methods
Public Methods (10)
publicstatic
DefaultAssetMap<String, BarterShopAsset> getAssetMap()publicstatic
AssetStore<String, BarterShopAsset, DefaultAssetMap<String, BarterShopAsset>> getAssetStore()public
String getDisplayNameKey()public
String getId()public
RefreshInterval getRefreshInterval()public
int getRestockHour()public
TradeSlot[] getTradeSlots()@Nullable
public
BarterTrade[] getTrades()public
boolean hasTradeSlots()public
String toString()@Nonnull@Override
Fields
Protected Fields (7)
protected
String displayNameKeyprotected
AssetExtraInfo.Data extraDataprotected
String idprotected
RefreshInterval refreshIntervalprotected
Integer restockHourprotected
TradeSlot[] tradeSlotsprotected
BarterTrade[] tradesPrivate/Package Fields (1)
private
AssetStore<String, BarterShopAsset, DefaultAssetMap<String, BarterShopAsset>> ASSET_STORE