Class MapKey<K,V>

java.lang.Object
dev.dhyces.trimmed.api.maps.MapKey<K,V>

public final class MapKey<K,V> extends Object
  • Field Details

    • REGISTERED_CODEC

      public static final com.mojang.serialization.MapCodec<MapKey<?,?>> REGISTERED_CODEC
  • Method Details

    • codec

      public static <K, V> com.mojang.serialization.Codec<MapKey<K,V>> codec(MapType<K,V> mapType)
    • baseKeyOf

      public static <K, V> MapKey<K,V> baseKeyOf(MapType<K,V> mapType, net.minecraft.resources.ResourceLocation id)
    • fromBase

      public static <K, V> MapKey<K,V> fromBase(MapKey<K,V> baseKey, net.minecraft.resources.ResourceLocation id)
    • of

      public static <K, V> MapKey<K,V> of(MapType<K,V> mapType, net.minecraft.resources.ResourceLocation id)
    • getType

      public MapType<K,V> getType()
    • getMapId

      public net.minecraft.resources.ResourceLocation getMapId()
    • makeSubKey

      public MapKey<K,V> makeSubKey(net.minecraft.resources.ResourceLocation subId)
    • getParentKey

      public MapKey<K,V> getParentKey()
    • getBaseKey

      public MapKey<K,V> getBaseKey()
    • isSubKey

      public boolean isSubKey()
    • compilePathAndIdNamespace

      public net.minecraft.resources.ResourceLocation compilePathAndIdNamespace()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object