类 RegisterDataMapTypesEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.registries.datamaps.RegisterDataMapTypesEvent
- 所有已实现的接口:
net.neoforged.fml.event.IModBusEvent
public class RegisterDataMapTypesEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Event fired on the mod event bus, in order to register
data map types
.-
字段概要
字段 -
构造器概要
构造器构造器说明RegisterDataMapTypesEvent
(Map<ResourceKey<Registry<?>>, Map<ResourceLocation, DataMapType<?, ?>>> attachments) -
方法概要
-
字段详细资料
-
attachments
-
-
构造器详细资料
-
RegisterDataMapTypesEvent
@Internal public RegisterDataMapTypesEvent(Map<ResourceKey<Registry<?>>, Map<ResourceLocation, DataMapType<?, ?>>> attachments)
-
-
方法详细资料
-
register
Register a registry data map.- 类型参数:
T
- the type of the data mapR
- the type of the registry- 参数:
type
- the data map type to register- 抛出:
IllegalArgumentException
- if a type with the same ID has already been registered for that registryUnsupportedOperationException
- if the registry is a non-synced datapack registry and the data map is synced
-