public interface ICapabilityProvider
Modifier and Type | Method and Description |
---|---|
default <T> LazyOptional<T> |
getCapability(Capability<T> cap) |
<T> LazyOptional<T> |
getCapability(Capability<T> cap,
Direction side)
Retrieves the Optional handler for the capability requested on the specific side.
|
@Nonnull <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable Direction side)
capability
- The capability to checkfacing
- The Side to check from,
CAN BE NULL. Null is defined to represent 'internal' or 'self'@Nonnull default <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap)