Interface RegistrationHelper
- All Known Implementing Classes:
- RegistrationHelperImpl
public interface RegistrationHelper
A helper for registration in tests.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddProvider(Function<GatherDataEvent, DataProvider> provider) Returns a helper for attachment type registration.blocks()Returns a helper for block registration.static RegistrationHelperReturns a helper for entity type registration.items()Returns a helper for item registration.modId()Returns the mod id of this helper.<T extends DataProvider>
 voidvoidregister(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- 
registrarReturns a deferred register for the givenregistry.- Returns:
- a deferred register for the given registry
 
- 
blocksDeferredBlocks blocks()Returns a helper for block registration.- Returns:
- a helper for block registration
 
- 
itemsDeferredItems items()Returns a helper for item registration.- Returns:
- a helper for item registration
 
- 
entityTypesDeferredEntityTypes entityTypes()Returns a helper for entity type registration.- Returns:
- a helper for entity type registration
 
- 
attachmentsDeferredAttachmentTypes attachments()Returns a helper for attachment type registration.- Returns:
- a helper for attachment type registration
 
- 
modIdString modId()Returns the mod id of this helper.- Returns:
- the mod id of this helper
 
- 
registerSubpack
- 
addProvider
- 
provider
- 
eventListeners
- 
registervoid register(net.neoforged.bus.api.IEventBus bus) 
- 
create
 
-