Interface IAspectRegistry
- All Superinterfaces:
org.cyclops.cyclopscore.init.IRegistry
,IVariableFacadeHandler<IAspectVariableFacade>
- All Known Implementing Classes:
AspectRegistry
public interface IAspectRegistry
extends org.cyclops.cyclopscore.init.IRegistry, IVariableFacadeHandler<IAspectVariableFacade>
Registry for
IAspect
.-
Method Summary
Modifier and TypeMethodDescriptiongetAspect
(net.minecraft.resources.ResourceLocation name) Get an aspect by name.Get all registered aspects.getAspects
(IPartType partType) Get the registered aspects for a given part type.Get all registered read aspects.List
<IAspectRead<?, ?>> getReadAspects
(IPartType partType) Get the registered read aspects for a given part type.Get all registered write aspects.List
<IAspectWrite<?, ?>> getWriteAspects
(IPartType partType) Get the registered write aspects for a given part type.void
register
(IPartType partType, Collection<IAspect> aspects) Register a set of aspects for a given part type.Register a new aspect for a given part type.Methods inherited from interface org.cyclops.integrateddynamics.api.item.IVariableFacadeHandler
getUniqueName, getVariableFacade, isInstance, isInstance, setVariableFacade
-
Method Details
-
getClient
IAspectRegistryClient getClient() -
register
Register a new aspect for a given part type.- Parameters:
partType
- The part type.aspect
- The aspect.- Returns:
- The registered element.
-
register
Register a set of aspects for a given part type.- Parameters:
partType
- The part type.aspects
- The aspects.
-
getAspects
Get the registered aspects for a given part type.- Parameters:
partType
- The part type.- Returns:
- The aspects.
-
getReadAspects
Get the registered read aspects for a given part type.- Parameters:
partType
- The part type.- Returns:
- The read aspects.
-
getWriteAspects
Get the registered write aspects for a given part type.- Parameters:
partType
- The part type.- Returns:
- The write aspects.
-
getAspects
Get all registered aspects.- Returns:
- The aspects.
-
getReadAspects
Set<IAspectRead> getReadAspects()Get all registered read aspects.- Returns:
- The read aspects.
-
getWriteAspects
Set<IAspectWrite> getWriteAspects()Get all registered write aspects.- Returns:
- The write aspects.
-
getAspect
Get an aspect by name.- Parameters:
name
- The name of the aspect.- Returns:
- The matching aspect.
-