JavaScript is disabled on your browser.
java.lang.Object
dev.architectury.registry.registries.forge.RegistriesImpl.ForgeBackedRegistryImpl<T>
All Implemented Interfaces:
dev.architectury.registry.registries.Registrar<T>
, Iterable <T>
Enclosing class:
RegistriesImpl
public static class RegistriesImpl.ForgeBackedRegistryImpl<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
extends Object
implements dev.architectury.registry.registries.Registrar<T>
Constructor Summary
Constructors
ForgeBackedRegistryImpl (com.google.common.collect.Table<Type ,net.minecraftforge.fmllegacy.RegistryObject<?>,Supplier <? extends net.minecraftforge.registries.IForgeRegistryEntry<?>>> registry,
net.minecraftforge.registries.IForgeRegistry<T > delegate)
Method Summary
All Methods Instance Methods Concrete Methods
boolean
contains (net.minecraft.resources.ResourceLocation resourceLocation)
boolean
@NotNull dev.architectury.registry.registries.RegistrySupplier<T >
delegate (net.minecraft.resources.ResourceLocation id)
get (net.minecraft.resources.ResourceLocation id)
net.minecraft.resources.ResourceLocation
Set <net.minecraft.resources.ResourceLocation>
Optional <net.minecraft.resources.ResourceKey<T >>
int
net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T >>
<E extends T > @NotNull dev.architectury.registry.registries.RegistrySupplier<E>
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
ForgeBackedRegistryImpl
public ForgeBackedRegistryImpl (com.google.common.collect.Table<Type ,net.minecraftforge.fmllegacy.RegistryObject<?>,Supplier <? extends net.minecraftforge.registries.IForgeRegistryEntry<?>>> registry,
net.minecraftforge.registries.IForgeRegistry<T > delegate)
Method Details
delegate
@NotNull
public @NotNull dev.architectury.registry.registries.RegistrySupplier<T > delegate (net.minecraft.resources.ResourceLocation id)
Specified by:
delegate
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
register
@NotNull
public <E extends T >
@NotNull dev.architectury.registry.registries.RegistrySupplier<E> register (net.minecraft.resources.ResourceLocation id,
Supplier <E> supplier)
Specified by:
register
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
getId
@Nullable
public net.minecraft.resources.ResourceLocation getId (T obj)
Specified by:
getId
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
getRawId
public int getRawId (T obj)
Specified by:
getRawId
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
getKey
public Optional <net.minecraft.resources.ResourceKey<T >> getKey (T t)
Specified by:
getKey
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
get
@Nullable
public T get (net.minecraft.resources.ResourceLocation id)
Specified by:
get
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
byRawId
public T byRawId (int rawId)
Specified by:
byRawId
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
contains
public boolean contains (net.minecraft.resources.ResourceLocation resourceLocation)
Specified by:
contains
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
containsValue
public boolean containsValue (T t)
Specified by:
containsValue
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
getIds
public Set <net.minecraft.resources.ResourceLocation> getIds ()
Specified by:
getIds
in interface dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
entrySet
public Set <Map.Entry <net.minecraft.resources.ResourceKey<T >,T >> entrySet ()
Specified by:
entrySet
in interface dev.architectury.registry.registries.Registrar<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 dev.architectury.registry.registries.Registrar<T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>
iterator
Specified by:
iterator
in interface Iterable <T extends net.minecraftforge.registries.IForgeRegistryEntry<T >>