Interface IdRegistry<T>

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

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

    Modifier and Type
    Method
    Description
    get(net.minecraft.resources.ResourceLocation id)
     
    @UnmodifiableView Collection<T>
     
    @UnmodifiableView Set<net.minecraft.resources.ResourceLocation>
     
    @Nullable net.minecraft.resources.ResourceLocation
    getId(T object)
     
    net.minecraft.resources.ResourceLocation
    getIdOrThrow(T object)
     
    getOrThrow(net.minecraft.resources.ResourceLocation id)
     
    boolean
     
    void
    register(net.minecraft.resources.ResourceLocation id, T object)
     
    <S extends T>
    S
    registerAndGet(net.minecraft.resources.ResourceLocation id, S object)
     

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • 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

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

      @UnmodifiableView Collection<T> getAll()
    • isFrozen

      boolean isFrozen()