接口 CapabilityRegistry.CapabilityConstructor<C>
- 封闭类:
CapabilityRegistry<C>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明create
(ResourceLocation name, Class<?> typeClass, Class<?> contextClass) Creates a new capability with the given name, type class and context class.
-
方法详细资料
-
create
Creates a new capability with the given name, type class and context class.Implementations should use a subclass of
BaseCapability
to easily store this metadata.
-