Class DeferredEntityTypes
java.lang.Object
net.neoforged.neoforge.registries.DeferredRegister<EntityType<?>>
net.neoforged.testframework.registration.DeferredEntityTypes
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.registries.DeferredRegister
DeferredRegister.Blocks, DeferredRegister.Items
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <I extends EntityType<?>>
DeferredEntityTypeBuildercreateHolder
(ResourceKey<? extends Registry<EntityType<?>>> registryKey, ResourceLocation key) Create aDeferredHolder
or an inheriting type to be stored.<E extends Entity>
DeferredEntityTypeBuilder<E,EntityType<E>> registerType
(String name, Supplier<EntityType.Builder<E>> sup) Methods inherited from class net.neoforged.neoforge.registries.DeferredRegister
addAlias, create, create, create, createBlocks, createItems, createTagKey, createTagKey, getEntries, getNamespace, getRegistry, getRegistryKey, getRegistryName, makeRegistry, register, register, register
-
Field Details
-
helper
-
-
Constructor Details
-
DeferredEntityTypes
-
-
Method Details
-
createHolder
protected <I extends EntityType<?>> DeferredEntityTypeBuilder createHolder(ResourceKey<? extends Registry<EntityType<?>>> registryKey, ResourceLocation key) Description copied from class:DeferredRegister
Create aDeferredHolder
or an inheriting type to be stored.- Overrides:
createHolder
in classDeferredRegister<EntityType<?>>
- Type Parameters:
I
- The specific type of the entry.- Parameters:
registryKey
- The key of the registry.key
- The resource location of the entry.- Returns:
- The new instance of
DeferredHolder
or an inheriting type.
-
registerType
public <E extends Entity> DeferredEntityTypeBuilder<E,EntityType<E>> registerType(String name, Supplier<EntityType.Builder<E>> sup)
-