Discussion in 'Plugin Development' started by DanielSturk, Aug 3, 2012.
Has the API for the Book and Quill been released yet? And if so, how can I use it?
Good question, I'm not entirely sure, but I don't think so. It seems as if they'd put a tutorial on it here, when they make it.
Indeed there are some 1.3.1 early builds, but I do not see any implementation in the javadocs, so I'm not entirely sure if there is one. I'm going to look through the source and get back to you if I find any.
EDIT: Yes there is!!! Sort of. You can spawn the item in, but you can't edit its contents, yet.
Not just yet, the builds arent even 100% stable, no time for new apis just yet.
There will almost certainly be one before the RB.
Is there a planned feature list for the API?
All I want is the ability to spawn books with custom titles. I'm going to be creating an awesome Magic Spells plugin
Edit: Not official yet, but found one made by codeman_B:
Not just yet, but found some interesting code-wise things out so far:
A .clone() of the book will have all the same contents.
Changing the item type from WRITTEN_BOOK to BOOK_AND_QUILL will allow you to edit it again and keep the contents.
Changing it back via code will keep the same title and author, even though they don't show up while editing.
Separate names with a comma.