Interface MmoMechanicsApi


public interface MmoMechanicsApi
Main API interface for accessing MMO Mechanics features and executing skills.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    castSkill(UUID casterUuid, @NotNull String skillId)
    Casts a skill on behalf of the entity with the specified UUID.
    @NotNull SkillExecutor
    Gets the active skill executor instance.
    boolean
    isFeatureEnabled(@NotNull org.bukkit.entity.Player player)
    Checks if the player has permission to use mechanics features.
    @NotNull String
    parsePlaceholders(@Nullable Target target, @NotNull String text)
    Parses PlaceholderAPI placeholders for the target recipient player.
    void
    sendMessage(@NotNull org.bukkit.entity.Player player, @NotNull String message)
    Sends a formatted chat message to a player, supporting PlaceholderAPI expansion.
  • Method Details

    • sendMessage

      void sendMessage(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String message)
      Sends a formatted chat message to a player, supporting PlaceholderAPI expansion.
      Parameters:
      player - the recipient player
      message - the message to send
    • isFeatureEnabled

      boolean isFeatureEnabled(@NotNull @NotNull org.bukkit.entity.Player player)
      Checks if the player has permission to use mechanics features.
      Parameters:
      player - the player to check
      Returns:
      true if enabled, false otherwise
    • getSkillExecutor

      @NotNull @NotNull SkillExecutor getSkillExecutor()
      Gets the active skill executor instance.
      Returns:
      the skill executor
    • parsePlaceholders

      @NotNull @NotNull String parsePlaceholders(@Nullable @Nullable Target target, @NotNull @NotNull String text)
      Parses PlaceholderAPI placeholders for the target recipient player.
      Parameters:
      target - the target context recipient
      text - the text to parse placeholders on
      Returns:
      the parsed placeholder text
    • castSkill

      boolean castSkill(@NotNull UUID casterUuid, @NotNull @NotNull String skillId)
      Casts a skill on behalf of the entity with the specified UUID.
      Parameters:
      casterUuid - the UUID of the casting entity
      skillId - the ID of the skill to execute
      Returns:
      true if the skill was successfully cast, false otherwise