Class TextComponentFactorySpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.util.text.TextComponentFactorySpigot
- All Implemented Interfaces:
ITextComponentFactory
Implementation of the text component factory for the Spigot platform.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ITextComponentFactory
ITextComponentFactory.SimpleTextComponentFactory -
Constructor Summary
ConstructorsConstructorDescriptionTextComponentFactorySpigot(ColorScheme<net.md_5.bungee.api.chat.BaseComponent> colorScheme) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()newClickableTextComponent(@Nullable TextType type, String command, @Nullable String info) Creates a newTextComponentand attempts to add any requiredITextDecorators to execute a command when the text is clicked.newComponent(@Nullable TextType type) Creates a newTextComponentfor a given type.@NonNull StringtoString()Methods inherited from interface ITextComponentFactory
newClickableTextComponent
-
Constructor Details
-
TextComponentFactorySpigot
-
-
Method Details
-
newComponent
Description copied from interface:ITextComponentFactoryCreates a newTextComponentfor a given type.- Specified by:
newComponentin interfaceITextComponentFactory- Parameters:
type- The type of the text.- Returns:
- A new component or null to apply no specific decoration to this component.
-
newClickableTextComponent
public TextComponent newClickableTextComponent(@Nullable TextType type, String command, @Nullable String info) Description copied from interface:ITextComponentFactoryCreates a newTextComponentand attempts to add any requiredITextDecorators to execute a command when the text is clicked.- Specified by:
newClickableTextComponentin interfaceITextComponentFactory- Parameters:
type- The type of the text.command- The command to execute when this text is clicked.info- The optional information String explaining what clicking the text will do.- Returns:
- A new component or null to apply no specific decoration to this component.
-
toString
-
equals
-
hashCode
-