Class SimpleCapabilityConstructor<C,H>

java.lang.Object
org.cyclops.cyclopscore.modcompat.capabilities.SimpleCapabilityConstructor<C,H>
Type Parameters:
C - The capability type
H - The host that will contain the capability.
All Implemented Interfaces:
ICapabilityConstructor<C,H,H>, ICapabilityTypeGetter<C>

public abstract class SimpleCapabilityConstructor<C,H> extends Object implements ICapabilityConstructor<C,H,H>
Constructor for capabilities when the host and the host type are equal.
  • Constructor Details

    • SimpleCapabilityConstructor

      public SimpleCapabilityConstructor()
  • Method Details

    • createProvider

      @Nullable public net.minecraftforge.common.capabilities.ICapabilityProvider createProvider(H hostType, H host)
      Specified by:
      createProvider in interface ICapabilityConstructor<C,H,H>
      Parameters:
      hostType - The host type for capabilities.
      host - The host for capabilities
      Returns:
      A new capability provider for the given host.
    • createProvider

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