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 nl.pim16aap2.animatedarchitecture.core.text.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.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.pim16aap2.animatedarchitecture.core.text.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 @Nullable TextType type, String command, @Nullable @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
public int hashCode()
-