类 CapabilityManager
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityManager
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final org.objectweb.asm.Type
static final CapabilityManager
已过时, 待删除: 此 API 元素将从以后的版本中删除。private static final org.apache.logging.log4j.Logger
private static final Map
<CapabilityManager.Key, Capability<?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
(专用程序包) static <T> Capability
<T> get
(String type, ResourceLocation name, boolean registering) static <T> Capability
<T> get
(CapabilityToken<T> type) Retrieves the 'root' capability for the specified type.static <T> Capability
<T> get
(CapabilityToken<T> type, String modid, String name) Retrieves a named capability of the specified type.static <T> Capability
<T> get
(CapabilityToken<T> type, ResourceLocation name) Retrieves a named capability of the specified type.static void
injectCapabilities
(ModList modlist)
-
字段详细资料
-
INSTANCE
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
AUTO_REGISTER
private static final org.objectweb.asm.Type AUTO_REGISTER -
providers
-
-
构造器详细资料
-
CapabilityManager
public CapabilityManager()
-
-
方法详细资料
-
get
Retrieves the 'root' capability for the specified type. This is the generic one that is used when the API registers the specified type. It is also safe to assume that if your child token is a valid return when this Capability is requested. -
get
Retrieves a named capability of the specified type. This is useful when providers supply multiple instances of the same interface and want to distinguish between them. It is generally not safe to return your generic implementation for the root type when this is requested. -
get
Retrieves a named capability of the specified type. This is useful when providers supply multiple instances of the same interface and want to distinguish between them. It is generally not safe to return your generic implementation for the root type when this is requested. -
get
-
injectCapabilities
-
error
-