Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.24 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.24 KB

Pen And Paper

Create JSON Written Books with ease

About:

Get ready to write!
Pen And Paper is an API which allows developers to create and manipulate Written Books in a straightforward and effortless manner. Whether it be used for lore, guides or just good old fun - Pen And Paper will get the job done.

Dependencies:

PowerNBT

Links:

Javadocs

How To Use:

WrittenBook wb = new WrittenBook();
// Write to the current page (page 0)
WrittenBookText text = wb.writeLine("Hello world!");
text.setColor(ChatColor.RED);
// writeLine adds a newline character at the end, while write does not
wb.write("This is line ");
wb.writeLine("2").setColor(ChatColor.DARK_PURPLE);
wb.write("&nLine 3");

You've now created the first page of your new Written Book. Thanks, Pen And Paper!

That wasn't so hard was it? It's now time to publish our new Written Book and share it with the world!

ItemStack wbitem = wb.publish();

TO BE CONTINUED