Class SpigotPlaceholderManager

java.lang.Object
com.guflimc.brick.placeholders.spigot.api.manager.SpigotPlaceholderManager
All Implemented Interfaces:
PlaceholderManager<org.bukkit.entity.Player>

public class SpigotPlaceholderManager extends Object implements PlaceholderManager<org.bukkit.entity.Player>
  • Constructor Details

    • SpigotPlaceholderManager

      public SpigotPlaceholderManager(org.bukkit.plugin.java.JavaPlugin plugin)
  • Method Details

    • replace

      public net.kyori.adventure.text.Component replace(@NotNull @NotNull net.kyori.adventure.text.Component component, @NotNull @NotNull PlaceholderResolveContext<org.bukkit.entity.Player> context)
      Description copied from interface: PlaceholderManager
      Replace placeholders.
      Specified by:
      replace in interface PlaceholderManager<org.bukkit.entity.Player>
      Parameters:
      component - to replace placeholders in
      Returns:
      the component with placeholders replaced
    • replace

      public net.kyori.adventure.text.Component replace(@NotNull @NotNull String text, @NotNull @NotNull PlaceholderResolveContext<org.bukkit.entity.Player> context)
      Description copied from interface: PlaceholderManager
      Replace placeholders.
      Specified by:
      replace in interface PlaceholderManager<org.bukkit.entity.Player>
      Parameters:
      text - to replace placeholders in
      Returns:
      the component with placeholders replaced
    • resolve

      @Nullable public @Nullable net.kyori.adventure.text.Component resolve(@NotNull @NotNull String placeholder, @NotNull @NotNull PlaceholderResolveContext<org.bukkit.entity.Player> context)
      Description copied from interface: PlaceholderManager
      Resolve the placeholder replacement for the given context.
      Specified by:
      resolve in interface PlaceholderManager<org.bukkit.entity.Player>
      Returns:
      the replacement.
    • register

      public void register(@NotNull @NotNull PlaceholderModule<org.bukkit.entity.Player> module)
      Description copied from interface: PlaceholderManager
      Register a module that provides placeholders.
      Specified by:
      register in interface PlaceholderManager<org.bukkit.entity.Player>
      Parameters:
      module - the module to register
    • unregister

      public void unregister(@NotNull @NotNull PlaceholderModule<org.bukkit.entity.Player> module)
      Description copied from interface: PlaceholderManager
      Unregister a placeholder module
      Specified by:
      unregister in interface PlaceholderManager<org.bukkit.entity.Player>
      Parameters:
      module - the module to unregister.