类 RegistrationHelperImpl
java.lang.Object
net.neoforged.testframework.impl.reg.RegistrationHelperImpl
- 所有已实现的接口:
RegistrationHelper
-
嵌套类概要
嵌套类修饰符和类型类说明private static interface
private final class
-
字段概要
字段修饰符和类型字段说明private final RegistrationHelperImpl.DeferredRegistrar
<AttachmentType<?>, DeferredAttachmentTypes> private DeferredBlocks
private net.neoforged.bus.api.IEventBus
private final com.google.common.collect.ListMultimap
<Class<?>, Consumer<? extends DataProvider>> private final List
<Function<GatherDataEvent.Client, DataProvider>> private final List
<Function<GatherDataEvent.Server, DataProvider>> private DeferredEntityTypes
private DeferredItems
private final String
private net.neoforged.fml.ModContainer
private static final Map
<Class<?>, RegistrationHelperImpl.DataGenProvider<?>> private final Map
<ResourceKey<? extends Registry<?>>, DeferredRegister<?>> private final com.google.common.collect.ListMultimap
<Class<?>, Consumer<? extends DataProvider>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
void
返回 a helper for attachment type registration。blocks()
返回 a helper for block registration。<T extends DataProvider>
voidclientProvider
(Class<T> type, Consumer<T> consumer) 返回 a helper for entity type registration。private <T extends GatherDataEvent>
voidgather
(T event, com.google.common.collect.ListMultimap<Class<?>, Consumer<? extends DataProvider>> providers, List<Function<T, DataProvider>> directProviders) private void
private void
items()
返回 a helper for item registration。modId()
返回 the mod id of this helper。void
register
(net.neoforged.bus.api.IEventBus bus, net.neoforged.fml.ModContainer container) <M extends DataMapType<?,
?>>
MregisterDataMap
(M map) Registers a data map.registerSubpack
(String name) <T> DeferredRegister
<T> registrar
(ResourceKey<Registry<T>> registry) 返回 a deferred register for the givenregistry
。<T extends DataProvider>
voidserverProvider
(Class<T> type, Consumer<T> consumer)
-
字段详细资料
-
owner
private net.neoforged.fml.ModContainer owner -
PROVIDERS
-
modId
-
clientProviders
private final com.google.common.collect.ListMultimap<Class<?>,Consumer<? extends DataProvider>> clientProviders -
serverProviders
private final com.google.common.collect.ListMultimap<Class<?>,Consumer<? extends DataProvider>> serverProviders -
directClientProviders
-
directServerProviders
-
registrars
-
blocks
-
items
-
entityTypes
-
attachments
private final RegistrationHelperImpl.DeferredRegistrar<AttachmentType<?>,DeferredAttachmentTypes> attachments -
bus
private net.neoforged.bus.api.IEventBus bus -
listeners
-
-
构造器详细资料
-
RegistrationHelperImpl
-
-
方法详细资料
-
registrar
从接口复制的说明:RegistrationHelper
返回 a deferred register for the givenregistry
。- 指定者:
registrar
在接口中RegistrationHelper
- 返回:
- a deferred register for the given
registry
-
blocks
从接口复制的说明:RegistrationHelper
返回 a helper for block registration。- 指定者:
blocks
在接口中RegistrationHelper
- 返回:
- a helper for block registration
-
items
从接口复制的说明:RegistrationHelper
返回 a helper for item registration。- 指定者:
items
在接口中RegistrationHelper
- 返回:
- a helper for item registration
-
entityTypes
从接口复制的说明:RegistrationHelper
返回 a helper for entity type registration。- 指定者:
entityTypes
在接口中RegistrationHelper
- 返回:
- a helper for entity type registration
-
attachments
从接口复制的说明:RegistrationHelper
返回 a helper for attachment type registration。- 指定者:
attachments
在接口中RegistrationHelper
- 返回:
- a helper for attachment type registration
-
registerDataMap
从接口复制的说明:RegistrationHelper
Registers a data map.- 指定者:
registerDataMap
在接口中RegistrationHelper
-
modId
从接口复制的说明:RegistrationHelper
返回 the mod id of this helper。- 指定者:
modId
在接口中RegistrationHelper
- 返回:
- the mod id of this helper
-
registerSubpack
- 指定者:
registerSubpack
在接口中RegistrationHelper
-
serverProvider
- 指定者:
serverProvider
在接口中RegistrationHelper
-
clientProvider
- 指定者:
clientProvider
在接口中RegistrationHelper
-
addClientProvider
- 指定者:
addClientProvider
在接口中RegistrationHelper
-
addServerProvider
- 指定者:
addServerProvider
在接口中RegistrationHelper
-
register
public void register(net.neoforged.bus.api.IEventBus bus, net.neoforged.fml.ModContainer container) - 指定者:
register
在接口中RegistrationHelper
-
eventListeners
- 指定者:
eventListeners
在接口中RegistrationHelper
-
gatherServer
-
gatherClient
-
gather
private <T extends GatherDataEvent> void gather(T event, com.google.common.collect.ListMultimap<Class<?>, Consumer<? extends DataProvider>> providers, List<Function<T, DataProvider>> directProviders)
-