Class SimpleCapabilityConstructor<C,H>
java.lang.Object
org.cyclops.cyclopscore.modcompat.capabilities.SimpleCapabilityConstructor<C,H>
- Type Parameters:
C
- The capability typeH
- 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract net.minecraftforge.common.capabilities.ICapabilityProvider
createProvider
(H host) net.minecraftforge.common.capabilities.ICapabilityProvider
createProvider
(H hostType, H host) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.cyclopscore.modcompat.capabilities.ICapabilityTypeGetter
getCapability
-
Constructor Details
-
SimpleCapabilityConstructor
public SimpleCapabilityConstructor()
-
-
Method Details
-
createProvider
@Nullable public net.minecraftforge.common.capabilities.ICapabilityProvider createProvider(H hostType, H host) - Specified by:
createProvider
in interfaceICapabilityConstructor<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.
-