Class DefaultSidedCapabilityProvider<O,T>
java.lang.Object
org.cyclops.cyclopscore.modcompat.capabilities.DefaultSidedCapabilityProvider<O,T>
- All Implemented Interfaces:
net.neoforged.neoforge.capabilities.ICapabilityProvider<O,
net.minecraft.core.Direction, T>
public class DefaultSidedCapabilityProvider<O,T>
extends Object
implements net.neoforged.neoforge.capabilities.ICapabilityProvider<O,net.minecraft.core.Direction,T>
A default sided implementation of the capability provider.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
ConstructorDescriptionDefaultSidedCapabilityProvider
(org.cyclops.cyclopscore.datastructure.EnumFacingMap<T> capabilities) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
H extends DefaultSidedCapabilityProvider.ISidedCapabilityConstructor<T>>
org.cyclops.cyclopscore.datastructure.EnumFacingMap<T> forAllSides
(H constructor) getCapability
(O object, net.minecraft.core.Direction context)
-
Constructor Details
-
DefaultSidedCapabilityProvider
public DefaultSidedCapabilityProvider(org.cyclops.cyclopscore.datastructure.EnumFacingMap<T> capabilities)
-
-
Method Details
-
getCapability
-
forAllSides
public static <T,H extends DefaultSidedCapabilityProvider.ISidedCapabilityConstructor<T>> org.cyclops.cyclopscore.datastructure.EnumFacingMap<T> forAllSides(H constructor)
-