Package dev.aurelium.slate.function
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.
-
Method Summary
Modifier and TypeMethodDescriptionintgetInstances(ComponentInfo<T> info) Gets the amount of instances of a component in a template.
-
Method Details
-
getInstances
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- theComponentInfocontext object- Returns:
- the amount of instances to show
-