Interface Component


public interface Component
  • Method Summary

    Modifier and Type
    Method
    Description
    toJsonString(org.bukkit.entity.Player player)
    Deprecated.
    toString(org.bukkit.entity.Player player)
    Convert this component to a raw string representation
    net.kyori.adventure.text.Component
    toTextComponent(org.bukkit.entity.Player player)
    Convert this component to an adventure text component
  • Method Details

    • toTextComponent

      net.kyori.adventure.text.Component toTextComponent(org.bukkit.entity.Player player)
      Convert this component to an adventure text component
      Parameters:
      player - The player to convert the component for
      Returns:
      The adventure text component representing this component. Whether or not it includes an icon depends on the player
    • toJsonString

      @Deprecated String toJsonString(org.bukkit.entity.Player player)
      Deprecated.
      Convert this component to a json string
      Parameters:
      player - The player to convert the component for
      Returns:
      The json string representing this component. Whether or not it includes an icon depends on the player
    • toString

      String toString(org.bukkit.entity.Player player)
      Convert this component to a raw string representation
      Parameters:
      player - The player to convert the component for
      Returns:
      The string representing this component.