Interface DefaultedRegistry<T>

All Superinterfaces:
IdMap<T>, IRegistryExtension<T>, Iterable<T>, com.mojang.serialization.Keyable, Registry<T>
All Known Implementing Classes:
DefaultedMappedRegistry

public interface DefaultedRegistry<T> extends Registry<T>
  • Method Details

    • getKey

      @Nonnull ResourceLocation getKey(T p_122330_)
      Specified by:
      getKey in interface Registry<T>
      Returns:
      the name used to identify the given object within this registry or null if the object is not within this registry
    • get

      @Nonnull T get(@Nullable ResourceLocation p_122328_)
      Specified by:
      get in interface Registry<T>
    • byId

      @Nonnull T byId(int p_122317_)
      Specified by:
      byId in interface IdMap<T>
    • getDefaultKey

      ResourceLocation getDefaultKey()