/**
* Adds pages to this book, assuming it is a book.
* <p />
* <b>UNSAFE</b>
*
* @param pages pages to add
*
* @return this item builder instance, for chaining
*/
public ItemBuilder bookAdd(@Nonnull String... pages) {
if (pages == null) {
if (!this.failSilently) {
throw new IllegalArgumentException("pages cannot be null.");
}
return this;
}
if (isBookMeta()) {
try {
((BookMeta) this.itemMeta).addPage(pages);
} catch (Exception e) {
if (!this.failSilently) {
e.printStackTrace();
}
}
}
return this;
}
ItemBuilder.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:SupaCommons
作者:
评论列表
文章目录