Package | Description |
---|---|
net.minecraftforge.common.capabilities | |
net.minecraftforge.fluids.capability |
Modifier and Type | Field and Description |
---|---|
private Capability.IStorage<T> |
Capability.storage |
Modifier and Type | Method and Description |
---|---|
Capability.IStorage<T> |
Capability.getStorage() |
Modifier and Type | Method and Description |
---|---|
<T> void |
CapabilityManager.register(java.lang.Class<T> type,
Capability.IStorage<T> storage,
java.util.concurrent.Callable<? extends T> factory)
Registers a capability to be consumed by others.
|
<T> void |
CapabilityManager.register(java.lang.Class<T> type,
Capability.IStorage<T> storage,
java.lang.Class<? extends T> implementation)
Deprecated.
Use the overload that takes a factory instead of a class.
You can easily do this by passing a constructor reference
(MyImpl::new instead of MyImpl.class). TODO remove in 1.13.
|
Constructor and Description |
---|
Capability(java.lang.String name,
Capability.IStorage<T> storage,
java.util.concurrent.Callable<? extends T> factory) |
Modifier and Type | Class and Description |
---|---|
private static class |
CapabilityFluidHandler.DefaultFluidHandlerStorage<T extends IFluidHandler> |