Package com.petrolpark.core.shop
Class ShopsData
java.lang.Object
java.util.AbstractMap<net.minecraft.core.Holder<Shop>,ShopsData.TeamShop>
java.util.HashMap<net.minecraft.core.Holder<Shop>,ShopsData.TeamShop>
com.petrolpark.core.shop.ShopsData
- All Implemented Interfaces:
Serializable,Cloneable,Map<net.minecraft.core.Holder<Shop>,ShopsData.TeamShop>
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ShopsData.TeamShopstatic ShopsDatafromMap(Map<net.minecraft.core.Holder<Shop>, ShopsData.TeamShop> map) net.minecraft.network.chat.ComponentgetOrCreate(net.minecraft.core.Holder<Shop> shop) voidMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ShopsData> STREAM_CODEC
-
-
Constructor Details
-
ShopsData
public ShopsData() -
ShopsData
public ShopsData(int size)
-
-
Method Details
-
fromMap
-
getOrCreate
-
grantXP
-
getName
-
defaultEntry
-