Class TextArgumentFactory
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.text.TextArgumentFactory
Contains some quality-of-life features to aid the creation of new
TextArguments.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionShortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument without any information for theTextType.CLICKABLEtext type.Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument for theTextType.CLICKABLEtext type.Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument without any information.Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument.newTextArgument(@Nullable Object argument, @Nullable TextType type) Shortcut for creating a newTextArgumentwith aTextComponentfor the provided text type.
-
Constructor Details
-
TextArgumentFactory
-
-
Method Details
-
newTextArgument
public TextArgument newTextArgument(@Nullable @Nullable Object argument, @Nullable @Nullable TextType type) Shortcut for creating a newTextArgumentwith aTextComponentfor the provided text type.- Parameters:
argument- The argument.type- The text type to use for the argument.- Returns:
- The new TextArgument.
-
highlight
- Parameters:
argument- The argument.- Returns:
- The new TextArgument.
-
info
- Parameters:
argument- The argument.- Returns:
- The new TextArgument.
-
error
- Parameters:
argument- The argument.- Returns:
- The new TextArgument.
-
success
- Parameters:
argument- The argument.- Returns:
- The new TextArgument.
-
clickable
public TextArgument clickable(Object argument, @Nullable @Nullable TextType type, String command, @Nullable @Nullable String info) Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument.See
ITextComponentFactory.newClickableTextComponent(TextType, String, String).- Parameters:
argument- The argument.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:
- The new TextArgument.
-
clickable
Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument without any information.See
ITextComponentFactory.newClickableTextComponent(TextType, String, String).- Parameters:
argument- The argument.type- The type of the text.command- The command to execute when this text is clicked.- Returns:
- The new TextArgument.
-
clickable
Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument for theTextType.CLICKABLEtext type.See
ITextComponentFactory.newClickableTextComponent(TextType, String, String).- Parameters:
argument- The argument.command- The command to execute when this text is clicked.info- The optional information String explaining what clicking the text will do.- Returns:
- The new TextArgument.
-
clickable
Shortcut for creating a newTextArgumentwith aTextComponentfor a clickable argument without any information for theTextType.CLICKABLEtext type.See
ITextComponentFactory.newClickableTextComponent(TextType, String, String).- Parameters:
argument- The argument.command- The command to execute when this text is clicked.- Returns:
- The new TextArgument.
-
getTextComponentFactory
-