Class StyledTextDecorator

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

public final class StyledTextDecorator extends Object implements ITextDecoratorSpigot
Represents a text decorator for the Spigot platform that can add styles to text.

Such styles include things like color, italics, etc.

  • Constructor Details

    • StyledTextDecorator

      public StyledTextDecorator(net.md_5.bungee.api.chat.BaseComponent style)
  • 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