Interface IdRegistry<T>

All Superinterfaces:
Iterable<T>
All Known Implementing Classes:
IdRegistryImpl

@NonExtendable public interface IdRegistry<T> extends Iterable<T>
  • Method Details

    • register

      void register(net.minecraft.resources.ResourceLocation id, T object)
    • registerAndGet

      <S extends T> S registerAndGet(net.minecraft.resources.ResourceLocation id, S object)
    • get

      @Nullable T get(net.minecraft.resources.ResourceLocation id)
    • getId

      @Nullable @Nullable net.minecraft.resources.ResourceLocation getId(T object)
    • getOrThrow

      T getOrThrow(net.minecraft.resources.ResourceLocation id)
    • getIdOrThrow

      net.minecraft.resources.ResourceLocation getIdOrThrow(T object)
    • getAllIds

      @Unmodifiable Set<net.minecraft.resources.ResourceLocation> getAllIds()
    • getAll

      @Unmodifiable Collection<T> getAll()
    • addFreezeCallback

      void addFreezeCallback(Consumer<IdRegistry<T>> callback)
    • isFrozen

      boolean isFrozen()