Class ClickableTextDecorator

java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.util.text.ClickableTextDecorator
All Implemented Interfaces:
ITextDecorator, ITextDecoratorSpigot

public final class ClickableTextDecorator extends Object implements ITextDecoratorSpigot
Represents a text decorator for the Spigot platform that decorates text with links that execute a command when clicked.
  • Constructor Details

    • ClickableTextDecorator

      public ClickableTextDecorator(String command, @Nullable String hoverMessage)
  • Method Details

    • decorateComponent

      public void decorateComponent(net.md_5.bungee.api.chat.BaseComponent component)
      Description copied from interface: ITextDecoratorSpigot
      Applies the decoration of this decorator to the provided component.
      Specified by:
      decorateComponent in interface ITextDecoratorSpigot
      Parameters:
      component - The component to decorate.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object