Interface PlaceholderExpansionCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Customizes the PlaceholderAPI expansion that
ZetaCorePlugin registers automatically.
Provide implementations as services or beans; all of them are applied before the expansion is registered.
@Service
public class PlaceholderSettings implements PlaceholderExpansionCustomizer {
@Override
public void customize(PapiExpansionService expansion) {
expansion.setIdentifier("myplugin").setAuthor("Me");
}
}
-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(PapiExpansionService expansion) Customizes the expansion before it is registered.
-
Method Details
-
customize
Customizes the expansion before it is registered.- Parameters:
expansion- The expansion, with all discovered placeholders added.
-