Interface IPartTypeRegistry

All Superinterfaces:
org.cyclops.cyclopscore.init.IRegistry
All Known Implementing Classes:
PartTypeRegistry

public interface IPartTypeRegistry extends org.cyclops.cyclopscore.init.IRegistry
Registry for IPartType.
  • Method Details

    • register

      <P extends IPartType<P, S>, S extends IPartState<P>> P register(P partType)
      Register a new part type.
      Type Parameters:
      P - The part type.
      S - The state type.
      Parameters:
      partType - The part type.
      Returns:
      The registered part type.
    • getPartTypes

      Collection<IPartType> getPartTypes()
      Returns:
      All registered part types.
    • getPartType

      IPartType getPartType(net.minecraft.resources.ResourceLocation partName)
      Get the part type by unique name.
      Parameters:
      partName - The unique part type name.
      Returns:
      The associated part type or null.