Class SModContainerRegistry
java.lang.Object
net.lcc.sollib.api.common.registry.SModContainerRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SModContainerRegistryprotected final Map<String, SolModContainer> -
Method Summary
Modifier and TypeMethodDescription<T,H extends SHolder<T>>
HLoops over theSolRegistrar<T, H> from everySolModContainer, and returns the firstSHolder<T> that verifies predicate<T,H extends SHolder<T>>
voidLoops over theSolRegistrar<T, H> from everySolModContainer, and applies consumer to everySHolder<T><T> voidregister(BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>>, SHolder<T>> consumer) voidregister(SolModContainer mod) Stores a SolModContainer for automatic registry.
-
Field Details
-
INSTANCE
-
INSTANCES
-
-
Method Details
-
register
Stores a SolModContainer for automatic registry. Called automatically inSolModContainer(String name, String namespace) -
get
- Returns:
- The SolModContainer for the given namespace, or null if none exists
-
iterate
Loops over theSolRegistrar<T, H> from everySolModContainer, and applies consumer to everySHolder<T> -
find
Loops over theSolRegistrar<T, H> from everySolModContainer, and returns the firstSHolder<T> that verifies predicate -
register
@Internal public <T> void register(BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>>, SHolder<T>> consumer)
-