Package de.themoep.ShowItem.api
Interface Component
public interface Component
-
Method Summary
Modifier and TypeMethodDescriptiontoJsonString
(org.bukkit.entity.Player player) Deprecated.toString
(org.bukkit.entity.Player player) Convert this component to a raw string representationnet.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.UsetoTextComponent(Player)
directlyConvert 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
Convert this component to a raw string representation- Parameters:
player
- The player to convert the component for- Returns:
- The string representing this component.
-
toTextComponent(Player)
directly