Advertisement
Guest User

FancyBookPage.java

a guest
Feb 15th, 2018
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. import java.util.ArrayList;
  2.  
  3. public class FancyBookPage {
  4.  
  5.     private ArrayList<FancyTextComponent> text = new ArrayList<>();
  6.  
  7.     public FancyBookPage() {
  8.     }
  9.  
  10.     public FancyBookPage(FancyTextComponent text) {
  11.         this.text.add(text);
  12.     }
  13.  
  14.     public static FancyBookPage fancyBookPage() {
  15.         return new FancyBookPage();
  16.     }
  17.  
  18.     public static FancyBookPage fancyBookPage(FancyTextComponent text) {
  19.         return new FancyBookPage(text);
  20.     }
  21.  
  22.     public void addText(FancyTextComponent text) {
  23.         this.text.add(text);
  24.     }
  25.  
  26.     public ArrayList<FancyTextComponent> getText() {
  27.         return text;
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement