Class PlaceholderProvider

java.lang.Object
com.andrei1058.spigot.sidebar.PlaceholderProvider

public class PlaceholderProvider extends Object
  • Constructor Details

    • PlaceholderProvider

      public PlaceholderProvider(String placeholder, Callable<String> replacement)
      Create a placeholder provider.
      Parameters:
      placeholder - placeholder with brackets.
      replacement - replacement.
  • Method Details

    • getPlaceholder

      public String getPlaceholder()
      Returns:
      placeholder.
    • getReplacement

      public String getReplacement()
      Returns:
      replacement.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object