Class ShopInventory<T,V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,V>
- Direct Known Subclasses:
ItemShopInventory,OutfitShopInventory
Represents contents & prices of a shop.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMerchantConfigurator(ShopGroupsXMLLoader.MerchantConfigurator merchantConfigurator) voidaddTradeFor(String name, String required, int count) com.google.common.collect.ImmutableList<ShopGroupsXMLLoader.MerchantConfigurator>getName()abstract IntegerRetrieves the price of an item sold by a shop.getTradeFor(String name) Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
ShopInventory
-
-
Method Details
-
getPrice
Retrieves the price of an item sold by a shop.- Parameters:
name- Name or identifier of item sold.- Returns:
- Amount of money required to buy item.
-
addMerchantConfigurator
-
getMerchantConfigurators
public com.google.common.collect.ImmutableList<ShopGroupsXMLLoader.MerchantConfigurator> getMerchantConfigurators() -
getShopType
-
getName
-
getTradeFor
-
getTradeFor
-
addTradeFor
-