Interface ComponentInstances<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ComponentInstances<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the amount of instances of a component in a template.
  • Method Details

    • getInstances

      int getInstances(ComponentInfo<T> info)
      Gets the amount of instances of a component in a template. If greater than 1, the component will be added to lore multiple times.
      Parameters:
      info - the ComponentInfo context object
      Returns:
      the amount of instances to show