Interface ICapabilityConstructor<C,T,H>

Type Parameters:
C - The capability type
T - The host type
H - The host that will contain the capability.
All Superinterfaces:
ICapabilityTypeGetter<C>
All Known Implementing Classes:
SimpleCapabilityConstructor

public interface ICapabilityConstructor<C,T,H> extends ICapabilityTypeGetter<C>
Constructor for capabilities.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.common.capabilities.ICapabilityProvider
    createProvider(T hostType, H host)
     

    Methods inherited from interface org.cyclops.cyclopscore.modcompat.capabilities.ICapabilityTypeGetter

    getCapability
  • Method Details

    • createProvider

      @Nullable net.minecraftforge.common.capabilities.ICapabilityProvider createProvider(T hostType, H host)
      Parameters:
      hostType - The host type for capabilities.
      host - The host for capabilities
      Returns:
      A new capability provider for the given host.