类 DeferredEntityTypes
java.lang.Object
net.neoforged.neoforge.registries.DeferredRegister<EntityType<?>>
net.neoforged.neoforge.registries.DeferredRegister.Entities
net.neoforged.testframework.registration.DeferredEntityTypes
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.registries.DeferredRegister
DeferredRegister.Blocks, DeferredRegister.DataComponents, DeferredRegister.Entities, DeferredRegister.Items
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected <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>> registerEntityType
(String name, EntityType.EntityFactory<E> factory, MobCategory category, UnaryOperator<EntityType.Builder<E>> builder) Convenience method that constructs a builder for use in the operator.从类继承的方法 net.neoforged.neoforge.registries.DeferredRegister.Entities
registerEntityType
从类继承的方法 net.neoforged.neoforge.registries.DeferredRegister
addAlias, create, create, create, createBlocks, createDataComponents, createEntities, createItems, createTagKey, createTagKey, getEntries, getNamespace, getRegistry, getRegistryKey, getRegistryName, makeRegistry, register, register, register
-
字段详细资料
-
helper
-
-
构造器详细资料
-
DeferredEntityTypes
-
-
方法详细资料
-
createHolder
protected <I extends EntityType<?>> DeferredEntityTypeBuilder createHolder(ResourceKey<? extends Registry<EntityType<?>>> registryKey, ResourceLocation key) 从类复制的说明:DeferredRegister
Create aDeferredHolder
or an inheriting type to be stored.- 覆盖:
createHolder
在类中DeferredRegister<EntityType<?>>
- 类型参数:
I
- The specific type of the entry.- 参数:
registryKey
- The key of the registry.key
- The resource location of the entry.- 返回:
- The new instance of
DeferredHolder
or an inheriting type.
-
registerEntityType
public <E extends Entity> DeferredEntityTypeBuilder<E,EntityType<E>> registerEntityType(String name, EntityType.EntityFactory<E> factory, MobCategory category, UnaryOperator<EntityType.Builder<E>> builder) 从类复制的说明:DeferredRegister.Entities
Convenience method that constructs a builder for use in the operator. Use this to avoid inference issues.- 覆盖:
registerEntityType
在类中DeferredRegister.Entities
- 类型参数:
E
- the type of the entity- 参数:
name
- The name for this entity type. It will automatically have the namespace prefixed.factory
- The factory used to typically construct the entity when using an existing helper from the type.category
- The category of the entity, typicallyMobCategory.MISC
for non-living entities, or one of the others for living entities.builder
- The unary operator, which is passed a new builder for user operators, then builds it upon registration.- 返回:
- A
DeferredHolder
which reflects the data that will be registered.
-