Class RegistryKeys<T>

java.lang.Object
dev.latvian.mods.klib.registry.RegistryKeys<T>

public final class RegistryKeys<T> extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.serialization.Codec<net.minecraft.resources.ResourceKey<T>>
     
    net.minecraft.resources.ResourceKey<T>
    create(net.minecraft.resources.Identifier id)
     
    static <T> RegistryKeys<T>
    createKeys(net.minecraft.resources.Identifier id)
     
    static <T> RegistryKeys<T>
    createKeys(net.minecraft.resources.Identifier id, String commonNamespace)
     
    boolean
     
    int
     
    net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>>
     
    net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, net.minecraft.resources.ResourceKey<T>>
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • createKeys

      public static <T> RegistryKeys<T> createKeys(net.minecraft.resources.Identifier id, String commonNamespace)
    • createKeys

      public static <T> RegistryKeys<T> createKeys(net.minecraft.resources.Identifier id)
    • create

      public net.minecraft.resources.ResourceKey<T> create(net.minecraft.resources.Identifier id)
    • root

      public net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> root()
    • codec

      public com.mojang.serialization.Codec<net.minecraft.resources.ResourceKey<T>> codec()
    • streamCodec

      public net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, net.minecraft.resources.ResourceKey<T>> streamCodec()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object