Package info.u_team.u_team_core.factory
Class FabricCommonRegister<C>
java.lang.Object
info.u_team.u_team_core.factory.FabricCommonRegister<C>
- All Implemented Interfaces:
CommonRegister<C>,Iterable<RegistryEntry<C>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptiongetModid()net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<C>>voidregister()<E extends C>
FabricCommonRegister.FabricRegistryEntry<E><E extends C>
FabricCommonRegister.FabricRegistryEntry<E>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface info.u_team.u_team_core.api.registry.CommonRegister
entryIterable, iteratorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
register
public <E extends C> FabricCommonRegister.FabricRegistryEntry<E> register(String name, Function<net.minecraft.resources.ResourceLocation, ? extends E> function) - Specified by:
registerin interfaceCommonRegister<C>
-
register
public <E extends C> FabricCommonRegister.FabricRegistryEntry<E> register(String name, Supplier<? extends E> supplier) - Specified by:
registerin interfaceCommonRegister<C>
-
register
public void register()- Specified by:
registerin interfaceCommonRegister<C>
-
getModid
- Specified by:
getModidin interfaceCommonRegister<C>
-
getRegistryKey
public net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<C>> getRegistryKey()- Specified by:
getRegistryKeyin interfaceCommonRegister<C>
-
getEntries
- Specified by:
getEntriesin interfaceCommonRegister<C>
-