Class RegistriesImpl.ForgeBackedRegistryImpl<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>

java.lang.Object
me.shedaniel.architectury.registry.forge.RegistriesImpl.ForgeBackedRegistryImpl<T>
All Implemented Interfaces:
Iterable<T>, me.shedaniel.architectury.registry.Registry<T>
Enclosing class:
RegistriesImpl

public static class RegistriesImpl.ForgeBackedRegistryImpl<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>> extends Object implements me.shedaniel.architectury.registry.Registry<T>
  • Constructor Details

    • ForgeBackedRegistryImpl

      public ForgeBackedRegistryImpl(Map<Type,RegistriesImpl.Data> registry, net.minecraftforge.registries.IForgeRegistry<T> delegate)
  • Method Details

    • delegateSupplied

      @NotNull public @NotNull me.shedaniel.architectury.registry.RegistrySupplier<T> delegateSupplied(net.minecraft.resources.ResourceLocation id)
      Specified by:
      delegateSupplied in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • registerSupplied

      @NotNull public <E extends T> @NotNull me.shedaniel.architectury.registry.RegistrySupplier<E> registerSupplied(net.minecraft.resources.ResourceLocation id, Supplier<E> supplier)
      Specified by:
      registerSupplied in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • getId

      @Nullable public net.minecraft.resources.ResourceLocation getId(T obj)
      Specified by:
      getId in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • getRawId

      public int getRawId(T obj)
      Specified by:
      getRawId in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • getKey

      public Optional<net.minecraft.resources.ResourceKey<T>> getKey(T t)
      Specified by:
      getKey in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • get

      @Nullable public T get(net.minecraft.resources.ResourceLocation id)
      Specified by:
      get in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • byRawId

      public T byRawId(int rawId)
      Specified by:
      byRawId in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • contains

      public boolean contains(net.minecraft.resources.ResourceLocation resourceLocation)
      Specified by:
      contains in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • containsValue

      public boolean containsValue(T t)
      Specified by:
      containsValue in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • getIds

      public Set<net.minecraft.resources.ResourceLocation> getIds()
      Specified by:
      getIds in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • entrySet

      public Set<Map.Entry<net.minecraft.resources.ResourceKey<T>,T>> entrySet()
      Specified by:
      entrySet in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • key

      public net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key()
      Specified by:
      key in interface me.shedaniel.architectury.registry.Registry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>