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 Details

    • register

      IAspect register(IPartType partType, IAspect aspect)
      Register a new aspect for a given part type.
      Parameters:
      partType - The part type.
      aspect - The aspect.
      Returns:
      The registered element.
    • register

      void register(IPartType partType, Collection<IAspect> aspects)
      Register a set of aspects for a given part type.
      Parameters:
      partType - The part type.
      aspects - The aspects.
    • getAspects

      Set<IAspect> getAspects(IPartType partType)
      Get the registered aspects for a given part type.
      Parameters:
      partType - The part type.
      Returns:
      The aspects.
    • getReadAspects

      List<IAspectRead> getReadAspects(IPartType partType)
      Get the registered read aspects for a given part type.
      Parameters:
      partType - The part type.
      Returns:
      The read aspects.
    • getWriteAspects

      List<IAspectWrite> getWriteAspects(IPartType partType)
      Get the registered write aspects for a given part type.
      Parameters:
      partType - The part type.
      Returns:
      The write aspects.
    • getAspects

      Set<IAspect> 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

      IAspect getAspect(net.minecraft.resources.ResourceLocation name)
      Get an aspect by name.
      Parameters:
      name - The name of the aspect.
      Returns:
      The matching aspect.
    • registerAspectModel

      void registerAspectModel(IAspect aspect, net.minecraft.resources.ResourceLocation modelLocation)
      Register a model resource location for the given aspect.
      Parameters:
      aspect - The aspect.
      modelLocation - The model resource location.
    • getAspectModel

      net.minecraft.resources.ResourceLocation getAspectModel(IAspect aspect)
      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.