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.

@FunctionalInterface public interface PlaceholderExpansionCustomizer
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 Type
    Method
    Description
    void
    Customizes the expansion before it is registered.
  • Method Details

    • customize

      void customize(PapiExpansionService expansion)
      Customizes the expansion before it is registered.
      Parameters:
      expansion - The expansion, with all discovered placeholders added.