Class Layout
java.lang.Object
com.bencodez.advancedcore.api.bookgui.Layout
Represents a layout for book GUIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPlaceholder(String toReplace, String replaceWith) Adds a placeholder replacement.net.md_5.bungee.api.chat.BaseComponent[]Gets the layout with placeholders replaced.replaceTextComponent(String text, net.md_5.bungee.api.chat.BaseComponent compToAdd) Replaces text with a component.
-
Constructor Details
-
Layout
Creates a new layout.- Parameters:
layout- the string layout
-
-
Method Details
-
addPlaceholder
Adds a placeholder replacement.- Parameters:
toReplace- the text to replacereplaceWith- the replacement text- Returns:
- this layout for chaining
-
getLayout
Gets the layout with placeholders replaced.- Parameters:
placeholders- the placeholders to replace- Returns:
- the layout components
-
replaceTextComponent
Replaces text with a component.- Parameters:
text- the text to replacecompToAdd- the component to add- Returns:
- this layout for chaining
-