类 BaseCapability<T,C extends @Nullable Object>
java.lang.Object
net.neoforged.neoforge.capabilities.BaseCapability<T,C>
- 类型参数:
T
- Type of queried objects.C
- Type of the additional context.
- 直接已知子类:
BlockCapability
,EntityCapability
,ItemCapability
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protected
BaseCapability
(ResourceLocation name, Class<T> typeClass, Class<C> contextClass) -
方法概要
修饰符和类型方法说明返回 the type of the additional context。final ResourceLocation
name()
返回 the name of this capability。返回 the type of queried objects。
-
字段详细资料
-
name
-
typeClass
-
contextClass
-
-
构造器详细资料
-
BaseCapability
-
-
方法详细资料
-
name
返回 the name of this capability。- 返回:
- the name of this capability
-
typeClass
返回 the type of queried objects。- 返回:
- the type of queried objects
-
contextClass
返回 the type of the additional context。- 返回:
- the type of the additional context
-