/** * Gets the book meta that the player is attempting to add to the book. * <p> * Note: this is a copy of the proposed new book meta. Use {@link * #setNewBookMeta(BookMeta)} to change what will actually be added to the * book. * * @return the book meta that the player is attempting to add */ public BookMeta getNewBookMeta() { return newBookMeta.clone(); }
/** * Gets the book meta currently on the book. * <p> * Note: this is a copy of the book meta. You cannot use this object to * change the existing book meta. * * @return the book meta currently on the book */ public BookMeta getPreviousBookMeta() { return previousBookMeta.clone(); }
/** * Sets the book meta that will actually be added to the book. * * @param newBookMeta new book meta * @throws IllegalArgumentException if the new book meta is null */ public void setNewBookMeta(BookMeta newBookMeta) throws IllegalArgumentException { Validate.notNull(newBookMeta, "New book meta must not be null"); Bukkit.getItemFactory().equals(newBookMeta, null); this.newBookMeta = newBookMeta.clone(); }
/** * Gets the book meta that the player is attempting to add to the book. * <p> * Note: this is a copy of the proposed new book meta. Use {@link * #setNewBookMeta(BookMeta)} to change what will actually be added to the * book. * * @return the book meta that the player is attempting to add */ public BookMeta getNewBookMeta() { return newBookMeta.clone(); }
/** * Gets the book meta currently on the book. * <p> * Note: this is a copy of the book meta. You cannot use this object to * change the existing book meta. * * @return the book meta currently on the book */ public BookMeta getPreviousBookMeta() { return previousBookMeta.clone(); }
/** * Sets the book meta that will actually be added to the book. * * @param newBookMeta new book meta * @throws IllegalArgumentException if the new book meta is null */ public void setNewBookMeta(BookMeta newBookMeta) throws IllegalArgumentException { Validate.notNull(newBookMeta, "New book meta must not be null"); Bukkit.getItemFactory().equals(newBookMeta, null); this.newBookMeta = newBookMeta.clone(); }