Class RegistrarManagerImpl.RegistrarImpl<T>
java.lang.Object
dev.architectury.registry.registries.fabric.RegistrarManagerImpl.RegistrarImpl<T>
- All Implemented Interfaces:
dev.architectury.registry.registries.Registrar<T>
,Iterable<T>
- Enclosing class:
- RegistrarManagerImpl
public static class RegistrarManagerImpl.RegistrarImpl<T>
extends Object
implements dev.architectury.registry.registries.Registrar<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyRawId
(int rawId) boolean
contains
(net.minecraft.resources.ResourceLocation id) boolean
containsValue
(T obj) dev.architectury.registry.registries.RegistrySupplier<T>
delegate
(net.minecraft.resources.ResourceLocation id) entrySet()
get
(net.minecraft.resources.ResourceLocation id) @Nullable net.minecraft.resources.ResourceLocation
Set<net.minecraft.resources.ResourceLocation>
getIds()
int
iterator()
net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>>
key()
void
<E extends T>
dev.architectury.registry.registries.RegistrySupplier<E>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface dev.architectury.registry.registries.Registrar
listen, wrap
-
Constructor Details
-
RegistrarImpl
-
-
Method Details
-
delegate
public dev.architectury.registry.registries.RegistrySupplier<T> delegate(net.minecraft.resources.ResourceLocation id) - Specified by:
delegate
in interfacedev.architectury.registry.registries.Registrar<T>
-
register
public <E extends T> dev.architectury.registry.registries.RegistrySupplier<E> register(net.minecraft.resources.ResourceLocation id, Supplier<E> supplier) - Specified by:
register
in interfacedev.architectury.registry.registries.Registrar<T>
-
getId
- Specified by:
getId
in interfacedev.architectury.registry.registries.Registrar<T>
-
getRawId
- Specified by:
getRawId
in interfacedev.architectury.registry.registries.Registrar<T>
-
getKey
- Specified by:
getKey
in interfacedev.architectury.registry.registries.Registrar<T>
-
get
- Specified by:
get
in interfacedev.architectury.registry.registries.Registrar<T>
-
byRawId
- Specified by:
byRawId
in interfacedev.architectury.registry.registries.Registrar<T>
-
contains
public boolean contains(net.minecraft.resources.ResourceLocation id) - Specified by:
contains
in interfacedev.architectury.registry.registries.Registrar<T>
-
containsValue
- Specified by:
containsValue
in interfacedev.architectury.registry.registries.Registrar<T>
-
getIds
- Specified by:
getIds
in interfacedev.architectury.registry.registries.Registrar<T>
-
entrySet
- Specified by:
entrySet
in interfacedev.architectury.registry.registries.Registrar<T>
-
key
- Specified by:
key
in interfacedev.architectury.registry.registries.Registrar<T>
-
iterator
-
listen
- Specified by:
listen
in interfacedev.architectury.registry.registries.Registrar<T>
-