Class Toast.Builder
java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.Toast.Builder
- Enclosing class:
Toast
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalizes the construction of the Toast.frame(AdvancementFrame frame) Sets the frame border style.icon(org.bukkit.inventory.ItemStack icon) Sets the icon for the toast.subtitle(net.kyori.adventure.text.Component line2) Sets the second line of text.titlle(net.kyori.adventure.text.Component line1) Sets the first line of text.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
titlle
Sets the first line of text.- Parameters:
line1- Primary header.- Returns:
- This builder.
-
subtitle
Sets the second line of text.- Parameters:
line2- Sub-header.- Returns:
- This builder.
-
icon
Sets the icon for the toast.- Parameters:
icon- TheItemStackicon.- Returns:
- This builder.
-
frame
Sets the frame border style.- Parameters:
frame- Visual frame.- Returns:
- This builder.
-
build
-