Package dev.dhyces.trimmed.impl.client
Class TrimmedClientMapApiImpl
java.lang.Object
dev.dhyces.trimmed.impl.client.TrimmedClientMapApiImpl
- All Implemented Interfaces:
TrimmedClientMapApi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<K,V, M extends Map<K, V>>
com.mojang.serialization.Codec<MapHolder.Typed<K, V, M>> advancedCodec(AdvancedMapType<K, V, M> mapType) <K,V, M extends Map<K, V>>
MapHolder.Typed<K, V, M> getAdvancedMap(MapKey<K, V> key, AdvancedMapType<K, V, M> mapType) <T> KeyResolver.RegistryResolver<T> getRegistryKeyResolver(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key) <K,V> MapHolder <K, V> getSimpleMap(MapKey<K, V> key) <K,V> com.mojang.serialization.Codec <MapHolder<K, V>> simpleCodec(MapType<K, V> mapType)
-
Field Details
-
INSTANCE
-
-
Method Details
-
getSimpleMap
- Specified by:
getSimpleMapin interfaceTrimmedClientMapApi
-
simpleCodec
- Specified by:
simpleCodecin interfaceTrimmedClientMapApi
-
getAdvancedMap
public <K,V, MapHolder.Typed<K,M extends Map<K, V>> V, getAdvancedMapM> (MapKey<K, V> key, AdvancedMapType<K, V, M> mapType) - Specified by:
getAdvancedMapin interfaceTrimmedClientMapApi
-
advancedCodec
public <K,V, com.mojang.serialization.Codec<MapHolder.Typed<K,M extends Map<K, V>> V, advancedCodecM>> (AdvancedMapType<K, V, M> mapType) - Specified by:
advancedCodecin interfaceTrimmedClientMapApi
-
getRegistryKeyResolver
@Nullable public <T> KeyResolver.RegistryResolver<T> getRegistryKeyResolver(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key) - Specified by:
getRegistryKeyResolverin interfaceTrimmedClientMapApi
-