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.net.minecraft.resources.ResourceLocation
getAspectModel
(IAspect aspect) Get the model resource location of the given aspect.Collection
<net.minecraft.resources.ResourceLocation> Get all registered model resource locations for the aspects.Get all registered aspects.getAspects
(IPartType partType) Get the registered aspects for a given part type.Get all registered read aspects.getReadAspects
(IPartType partType) Get the registered read aspects for a given part type.Get all registered write aspects.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.void
registerAspectModel
(IAspect aspect, net.minecraft.resources.ResourceLocation modelLocation) Register a model resource location for the given aspect.Methods inherited from interface org.cyclops.integrateddynamics.api.item.IVariableFacadeHandler
getUniqueName, getVariableFacade, isInstance, isInstance, setVariableFacade
-
Method Details
-
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.
-
registerAspectModel
Register a model resource location for the given aspect.- Parameters:
aspect
- The aspect.modelLocation
- The model resource location.
-
getAspectModel
Get the model resource location of the given aspect.- Parameters:
aspect
- The aspect.- Returns:
- The model resource location.
-
getAspectModels
Collection<net.minecraft.resources.ResourceLocation> getAspectModels()Get all registered model resource locations for the aspects.- Returns:
- All model resource locations.
-