Class PlaceholderHandler

java.lang.Object
me.deecaad.core.placeholder.PlaceholderHandler
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed
Direct Known Subclasses:
EnumPlaceholderHandler, ListPlaceholderHandler, NumericPlaceholderHandler

public abstract class PlaceholderHandler extends Object implements org.bukkit.Keyed
A PlaceholderHandler is a variable in a string. Instances of this class return the current value of the variable, which can then be used in the string.
  • Constructor Details

    • PlaceholderHandler

      public PlaceholderHandler()
  • Method Details

    • onRequest

      @Nullable public abstract @Nullable String onRequest(@NotNull @NotNull PlaceholderData data)
      Returns the value for this placeholder, given the data.
      Parameters:
      data - The data used to generate placeholders from
      Returns:
      the result for placeholder or null
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object