Interface RegistrationHelper
- All Known Implementing Classes:
RegistrationHelperImpl
public interface RegistrationHelper
A helper for registration in tests.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvider
(Function<GatherDataEvent, DataProvider> provider) Returns a helper for attachment type registration.blocks()
Returns a helper for block registration.static RegistrationHelper
Returns a helper for entity type registration.items()
Returns a helper for item registration.modId()
Returns the mod id of this helper.<T extends DataProvider>
voidvoid
register
(net.neoforged.bus.api.IEventBus bus) registerSubpack
(String name) <T> DeferredRegister<T>
registrar
(ResourceKey<Registry<T>> registry) Returns a deferred register for the givenregistry
.
-
Method Details
-
registrar
Returns a deferred register for the givenregistry
.- Returns:
- a deferred register for the given
registry
-
blocks
DeferredBlocks blocks()Returns a helper for block registration.- Returns:
- a helper for block registration
-
items
DeferredItems items()Returns a helper for item registration.- Returns:
- a helper for item registration
-
entityTypes
DeferredEntityTypes entityTypes()Returns a helper for entity type registration.- Returns:
- a helper for entity type registration
-
attachments
DeferredAttachmentTypes attachments()Returns a helper for attachment type registration.- Returns:
- a helper for attachment type registration
-
modId
String modId()Returns the mod id of this helper.- Returns:
- the mod id of this helper
-
registerSubpack
-
addProvider
-
provider
-
eventListeners
-
register
void register(net.neoforged.bus.api.IEventBus bus) -
create
-