mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-09-06 15:58:13 +00:00
712 lines
70 KiB
HTML
712 lines
70 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (17) -->
|
|
<title>BookMeta (Scissors-API 1.19-R0.1-SNAPSHOT API)</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="description" content="declaration: package: org.bukkit.inventory.meta, interface: BookMeta">
|
|
<meta name="generator" content="javadoc/ClassWriterImpl">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../../script-dir/jquery-3.5.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body class="class-declaration-page">
|
|
<script type="text/javascript">var evenRowColor = "even-row-color";
|
|
var oddRowColor = "odd-row-color";
|
|
var tableTab = "table-tab";
|
|
var activeTableTab = "active-table-tab";
|
|
var pathtoroot = "../../../../";
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<div class="flex-box">
|
|
<header role="banner" class="flex-header">
|
|
<nav role="navigation">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="top-nav" id="navbar-top">
|
|
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
|
<li><a href="../../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="nav-bar-cell1-rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html#class">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="sub-nav">
|
|
<div>
|
|
<ul class="sub-nav-list">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested-class-summary">Nested</a> | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method-summary">Method</a></li>
|
|
</ul>
|
|
<ul class="sub-nav-list">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method-detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
|
|
<input type="text" id="search-input" value="search" disabled="disabled">
|
|
<input type="reset" id="reset-button" value="reset" disabled="disabled">
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
|
</header>
|
|
<div class="flex-content">
|
|
<main role="main">
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.bukkit.inventory.meta</a></div>
|
|
<h1 title="Interface BookMeta" class="title">Interface BookMeta</h1>
|
|
</div>
|
|
<section class="class-description" id="class-description">
|
|
<dl class="notes">
|
|
<dt>All Superinterfaces:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></code>, <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/util/Buildable.html" title="class or interface in net.kyori.adventure.util" class="external-link">Buildable</a><<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a>,<wbr><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.Builder.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book.Builder</a>></code>, <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code>, <code><a href="../../configuration/serialization/ConfigurationSerializable.html" title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></code>, <code>net.kyori.examination.Examinable</code>, <code><a href="ItemMeta.html" title="interface in org.bukkit.inventory.meta">ItemMeta</a></code>, <code><a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">BookMeta</span><span class="extends-implements">
|
|
extends <a href="ItemMeta.html" title="interface in org.bukkit.inventory.meta">ItemMeta</a>, <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></span></div>
|
|
<div class="block">Represents a book (<a href="../../Material.html#WRITABLE_BOOK"><code>Material.WRITABLE_BOOK</code></a> or <a href="../../Material.html#WRITTEN_BOOK"><code>Material.WRITTEN_BOOK</code></a>) that can have a title, an author, and pages.</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<li>
|
|
<section class="nested-class-summary" id="nested-class-summary">
|
|
<h2>Nested Class Summary</h2>
|
|
<div class="caption"><span>Nested Classes</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Interface</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color"><code>static interface </code></div>
|
|
<div class="col-second even-row-color"><code><a href="BookMeta.BookMetaBuilder.html" class="type-name-link" title="interface in org.bukkit.inventory.meta">BookMeta.BookMetaBuilder</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
<div class="col-first odd-row-color"><code>static enum </code></div>
|
|
<div class="col-second odd-row-color"><code><a href="BookMeta.Generation.html" class="type-name-link" title="enum class in org.bukkit.inventory.meta">BookMeta.Generation</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Represents the generation (or level of copying) of a written book</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static class </code></div>
|
|
<div class="col-second even-row-color"><code><a href="BookMeta.Spigot.html" class="type-name-link" title="class in org.bukkit.inventory.meta">BookMeta.Spigot</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
</div>
|
|
<div class="inherited-list">
|
|
<h2 id="nested-classes-inherited-from-class-net.kyori.adventure.inventory.Book">Nested classes/interfaces inherited from interface net.kyori.adventure.inventory.<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></h2>
|
|
<code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.Builder.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book.Builder</a></code></div>
|
|
</section>
|
|
</li>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<li>
|
|
<section class="method-summary" id="method-summary">
|
|
<h2>Method Summary</h2>
|
|
<div id="method-summary-table">
|
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated Methods</button></div>
|
|
<div id="method-summary-table.tabpanel" role="tabpanel">
|
|
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Method</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#addPage(java.lang.String...)" class="member-name-link">addPage</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>... pages)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="#addPages(net.kyori.adventure.text.Component...)"><code>addPages(net.kyori.adventure.text.Component...)</code></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#addPages(net.kyori.adventure.text.Component...)" class="member-name-link">addPages</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>... pages)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Adds new pages to the end of the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#author()" class="member-name-link">author</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the author of the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#author(net.kyori.adventure.text.Component)" class="member-name-link">author</a><wbr>(<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> author)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Sets the author of the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getAuthor()" class="member-name-link">getAuthor</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the author of the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="BookMeta.Generation.html" title="enum class in org.bukkit.inventory.meta">BookMeta.Generation</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getGeneration()" class="member-name-link">getGeneration</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the generation of the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getPage(int)" class="member-name-link">getPage</a><wbr>(int page)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="#page(int)"><code>page(int)</code></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getPageCount()" class="member-name-link">getPageCount</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the number of pages in the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getPages()" class="member-name-link">getPages</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages()" title="class or interface in net.kyori.adventure.inventory" class="external-link"><code>Book.pages()</code></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getTitle()" class="member-name-link">getTitle</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the title of the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasAuthor()" class="member-name-link">hasAuthor</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Checks for the existence of an author in the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasGeneration()" class="member-name-link">hasGeneration</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Checks for the existence of generation level in the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasPages()" class="member-name-link">hasPages</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Checks for the existence of pages in the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasTitle()" class="member-name-link">hasTitle</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Checks for the existence of a title in the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#page(int)" class="member-name-link">page</a><wbr>(int page)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the specified page in the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#page(int,net.kyori.adventure.text.Component)" class="member-name-link">page</a><wbr>(int page,
|
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> data)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Sets the specified page in the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setAuthor(java.lang.String)" class="member-name-link">setAuthor</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> author)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Sets the author of the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setGeneration(org.bukkit.inventory.meta.BookMeta.Generation)" class="member-name-link">setGeneration</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="BookMeta.Generation.html" title="enum class in org.bukkit.inventory.meta">BookMeta.Generation</a> generation)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Sets the generation of the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#setPage(int,java.lang.String)" class="member-name-link">setPage</a><wbr>(int page,
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> data)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="#page(int,net.kyori.adventure.text.Component)"><code>page(int, net.kyori.adventure.text.Component)</code></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#setPages(java.lang.String...)" class="member-name-link">setPages</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>... pages)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages(net.kyori.adventure.text.Component...)" title="class or interface in net.kyori.adventure.inventory" class="external-link"><code>Book.pages(net.kyori.adventure.text.Component...)</code></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#setPages(java.util.List)" class="member-name-link">setPages</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> pages)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages(java.util.List)" title="class or interface in net.kyori.adventure.inventory" class="external-link"><code>Book.pages(List)</code></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setTitle(java.lang.String)" class="member-name-link">setTitle</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Sets the title of the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.Spigot.html" title="class in org.bukkit.inventory.meta">BookMeta.Spigot</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#spigot()" class="member-name-link">spigot</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"> </div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#title()" class="member-name-link">title</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Gets the title of the book.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#title(net.kyori.adventure.text.Component)" class="member-name-link">title</a><wbr>(<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Sets the title of the book.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>@NonNull <a href="BookMeta.BookMetaBuilder.html" title="interface in org.bukkit.inventory.meta">BookMeta.BookMetaBuilder</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#toBuilder()" class="member-name-link">toBuilder</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
|
<div class="block">Create a new builder initialized with the attributes of this book.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-net.kyori.adventure.inventory.Book">Methods inherited from interface net.kyori.adventure.inventory.<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></h3>
|
|
<code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages()" title="class or interface in net.kyori.adventure.inventory" class="external-link">pages</a>, <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages(java.util.List)" title="class or interface in net.kyori.adventure.inventory" class="external-link">pages</a>, <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages(net.kyori.adventure.text.Component...)" title="class or interface in net.kyori.adventure.inventory" class="external-link">pages</a></code></div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-org.bukkit.configuration.serialization.ConfigurationSerializable">Methods inherited from interface org.bukkit.configuration.serialization.<a href="../../configuration/serialization/ConfigurationSerializable.html" title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></h3>
|
|
<code><a href="../../configuration/serialization/ConfigurationSerializable.html#serialize()">serialize</a></code></div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-net.kyori.examination.Examinable">Methods inherited from interface net.kyori.examination.Examinable</h3>
|
|
<code>examinableName, examinableProperties, examine</code></div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-org.bukkit.inventory.meta.ItemMeta">Methods inherited from interface org.bukkit.inventory.meta.<a href="ItemMeta.html" title="interface in org.bukkit.inventory.meta">ItemMeta</a></h3>
|
|
<code><a href="ItemMeta.html#addAttributeModifier(org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier)">addAttributeModifier</a>, <a href="ItemMeta.html#addEnchant(org.bukkit.enchantments.Enchantment,int,boolean)">addEnchant</a>, <a href="ItemMeta.html#addItemFlags(org.bukkit.inventory.ItemFlag...)">addItemFlags</a>, <a href="ItemMeta.html#displayName()">displayName</a>, <a href="ItemMeta.html#displayName(net.kyori.adventure.text.Component)">displayName</a>, <a href="ItemMeta.html#getAsString()">getAsString</a>, <a href="ItemMeta.html#getAttributeModifiers()">getAttributeModifiers</a>, <a href="ItemMeta.html#getAttributeModifiers(org.bukkit.attribute.Attribute)">getAttributeModifiers</a>, <a href="ItemMeta.html#getAttributeModifiers(org.bukkit.inventory.EquipmentSlot)">getAttributeModifiers</a>, <a href="ItemMeta.html#getCanDestroy()">getCanDestroy</a>, <a href="ItemMeta.html#getCanPlaceOn()">getCanPlaceOn</a>, <a href="ItemMeta.html#getCustomModelData()">getCustomModelData</a>, <a href="ItemMeta.html#getCustomTagContainer()">getCustomTagContainer</a>, <a href="ItemMeta.html#getDestroyableKeys()">getDestroyableKeys</a>, <a href="ItemMeta.html#getDisplayName()">getDisplayName</a>, <a href="ItemMeta.html#getDisplayNameComponent()">getDisplayNameComponent</a>, <a href="ItemMeta.html#getEnchantLevel(org.bukkit.enchantments.Enchantment)">getEnchantLevel</a>, <a href="ItemMeta.html#getEnchants()">getEnchants</a>, <a href="ItemMeta.html#getItemFlags()">getItemFlags</a>, <a href="ItemMeta.html#getLocalizedName()">getLocalizedName</a>, <a href="ItemMeta.html#getLore()">getLore</a>, <a href="ItemMeta.html#getLoreComponents()">getLoreComponents</a>, <a href="ItemMeta.html#getPlaceableKeys()">getPlaceableKeys</a>, <a href="ItemMeta.html#hasAttributeModifiers()">hasAttributeModifiers</a>, <a href="ItemMeta.html#hasConflictingEnchant(org.bukkit.enchantments.Enchantment)">hasConflictingEnchant</a>, <a href="ItemMeta.html#hasCustomModelData()">hasCustomModelData</a>, <a href="ItemMeta.html#hasDestroyableKeys()">hasDestroyableKeys</a>, <a href="ItemMeta.html#hasDisplayName()">hasDisplayName</a>, <a href="ItemMeta.html#hasEnchant(org.bukkit.enchantments.Enchantment)">hasEnchant</a>, <a href="ItemMeta.html#hasEnchants()">hasEnchants</a>, <a href="ItemMeta.html#hasItemFlag(org.bukkit.inventory.ItemFlag)">hasItemFlag</a>, <a href="ItemMeta.html#hasLocalizedName()">hasLocalizedName</a>, <a href="ItemMeta.html#hasLore()">hasLore</a>, <a href="ItemMeta.html#hasPlaceableKeys()">hasPlaceableKeys</a>, <a href="ItemMeta.html#isUnbreakable()">isUnbreakable</a>, <a href="ItemMeta.html#lore()">lore</a>, <a href="ItemMeta.html#lore(java.util.List)">lore</a>, <a href="ItemMeta.html#removeAttributeModifier(org.bukkit.attribute.Attribute)">removeAttributeModifier</a>, <a href="ItemMeta.html#removeAttributeModifier(org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier)">removeAttributeModifier</a>, <a href="ItemMeta.html#removeAttributeModifier(org.bukkit.inventory.EquipmentSlot)">removeAttributeModifier</a>, <a href="ItemMeta.html#removeEnchant(org.bukkit.enchantments.Enchantment)">removeEnchant</a>, <a href="ItemMeta.html#removeItemFlags(org.bukkit.inventory.ItemFlag...)">removeItemFlags</a>, <a href="ItemMeta.html#setAttributeModifiers(com.google.common.collect.Multimap)">setAttributeModifiers</a>, <a href="ItemMeta.html#setCanDestroy(java.util.Set)">setCanDestroy</a>, <a href="ItemMeta.html#setCanPlaceOn(java.util.Set)">setCanPlaceOn</a>, <a href="ItemMeta.html#setCustomModelData(java.lang.Integer)">setCustomModelData</a>, <a href="ItemMeta.html#setDestroyableKeys(java.util.Collection)">setDestroyableKeys</a>, <a href="ItemMeta.html#setDisplayName(java.lang.String)">setDisplayName</a>, <a href="ItemMeta.html#setDisplayNameComponent(net.md_5.bungee.api.chat.BaseComponent%5B%5D)">setDisplayNameComponent</a>, <a href="ItemMeta.html#setLocalizedName(java.lang.String)">setLocalizedName</a>, <a href="ItemMeta.html#setLore(java.util.List)">setLore</a>, <a href="ItemMeta.html#setLoreComponents(java.util.List)">setLoreComponents</a>, <a href="ItemMeta.html#setPlaceableKeys(java.util.Collection)">setPlaceableKeys</a>, <a href="ItemMeta.html#setUnbreakable(boolean)">setUnbreakable</a>, <a href="ItemMeta.html#setVersion(int)">setVersion</a></code></div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-org.bukkit.persistence.PersistentDataHolder">Methods inherited from interface org.bukkit.persistence.<a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></h3>
|
|
<code><a href="../../persistence/PersistentDataHolder.html#getPersistentDataContainer()">getPersistentDataContainer</a></code></div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="details">
|
|
<ul class="details-list">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<li>
|
|
<section class="method-details" id="method-detail">
|
|
<h2>Method Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="hasTitle()">
|
|
<h3>hasTitle</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hasTitle</span>()</div>
|
|
<div class="block">Checks for the existence of a title in the book.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>true if the book has a title</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getTitle()">
|
|
<h3>getTitle</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getTitle</span>()</div>
|
|
<div class="block">Gets the title of the book.
|
|
<p>
|
|
Plugins should check that hasTitle() returns true before calling this
|
|
method.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the title of the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setTitle(java.lang.String)">
|
|
<h3>setTitle</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">setTitle</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</span></div>
|
|
<div class="block">Sets the title of the book.
|
|
<p>
|
|
Limited to 32 characters. Removes title when given null.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>title</code> - the title to set</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>true if the title was successfully set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="hasAuthor()">
|
|
<h3>hasAuthor</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hasAuthor</span>()</div>
|
|
<div class="block">Checks for the existence of an author in the book.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>true if the book has an author</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getAuthor()">
|
|
<h3>getAuthor</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getAuthor</span>()</div>
|
|
<div class="block">Gets the author of the book.
|
|
<p>
|
|
Plugins should check that hasAuthor() returns true before calling this
|
|
method.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the author of the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setAuthor(java.lang.String)">
|
|
<h3>setAuthor</h3>
|
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setAuthor</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> author)</span></div>
|
|
<div class="block">Sets the author of the book. Removes author when given null.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>author</code> - the author to set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="hasGeneration()">
|
|
<h3>hasGeneration</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hasGeneration</span>()</div>
|
|
<div class="block">Checks for the existence of generation level in the book.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>true if the book has a generation level</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getGeneration()">
|
|
<h3>getGeneration</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="BookMeta.Generation.html" title="enum class in org.bukkit.inventory.meta">BookMeta.Generation</a></span> <span class="element-name">getGeneration</span>()</div>
|
|
<div class="block">Gets the generation of the book.
|
|
<p>
|
|
Plugins should check that hasGeneration() returns true before calling
|
|
this method.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the generation of the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setGeneration(org.bukkit.inventory.meta.BookMeta.Generation)">
|
|
<h3>setGeneration</h3>
|
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">setGeneration</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="BookMeta.Generation.html" title="enum class in org.bukkit.inventory.meta">BookMeta.Generation</a> generation)</span></div>
|
|
<div class="block">Sets the generation of the book. Removes generation when given null.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>generation</code> - the generation to set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="hasPages()">
|
|
<h3>hasPages</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hasPages</span>()</div>
|
|
<div class="block">Checks for the existence of pages in the book.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>true if the book has pages</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="title()">
|
|
<h3>title</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
</span><span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span> <span class="element-name">title</span>()</div>
|
|
<div class="block">Gets the title of the book.
|
|
<p>
|
|
Plugins should check that hasTitle() returns true before calling this
|
|
method.</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#title()" title="class or interface in net.kyori.adventure.inventory" class="external-link">title</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></code></dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the title of the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="title(net.kyori.adventure.text.Component)">
|
|
<h3>title</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></span> <span class="element-name">title</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</span></div>
|
|
<div class="block">Sets the title of the book.
|
|
<p>
|
|
Limited to 32 characters. Removes title when given null.</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#title(net.kyori.adventure.text.Component)" title="class or interface in net.kyori.adventure.inventory" class="external-link">title</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></code></dd>
|
|
<dt>Parameters:</dt>
|
|
<dd><code>title</code> - the title to set</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the same <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta"><code>BookMeta</code></a> instance</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="author()">
|
|
<h3>author</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
</span><span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span> <span class="element-name">author</span>()</div>
|
|
<div class="block">Gets the author of the book.
|
|
<p>
|
|
Plugins should check that hasAuthor() returns true before calling this
|
|
method.</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#author()" title="class or interface in net.kyori.adventure.inventory" class="external-link">author</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></code></dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the author of the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="author(net.kyori.adventure.text.Component)">
|
|
<h3>author</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></span> <span class="element-name">author</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> author)</span></div>
|
|
<div class="block">Sets the author of the book. Removes author when given null.</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#author(net.kyori.adventure.text.Component)" title="class or interface in net.kyori.adventure.inventory" class="external-link">author</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></code></dd>
|
|
<dt>Parameters:</dt>
|
|
<dd><code>author</code> - the author to set</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the same <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta"><code>BookMeta</code></a> instance</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="page(int)">
|
|
<h3>page</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span> <span class="element-name">page</span><wbr><span class="parameters">(int page)</span></div>
|
|
<div class="block">Gets the specified page in the book. The page must exist.
|
|
<p>
|
|
Pages are 1-indexed.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>page</code> - the page number to get, in range [1, getPageCount()]</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the page from the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="page(int,net.kyori.adventure.text.Component)">
|
|
<h3>page</h3>
|
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">page</span><wbr><span class="parameters">(int page,
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> data)</span></div>
|
|
<div class="block">Sets the specified page in the book. Pages of the book must be
|
|
contiguous.
|
|
<p>
|
|
The data can be up to 256 characters in length, additional characters
|
|
are truncated.
|
|
<p>
|
|
Pages are 1-indexed.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>page</code> - the page number to set, in range [1, getPageCount()]</dd>
|
|
<dd><code>data</code> - the data to set for that page</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="addPages(net.kyori.adventure.text.Component...)">
|
|
<h3>addPages</h3>
|
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">addPages</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>... pages)</span></div>
|
|
<div class="block">Adds new pages to the end of the book. Up to a maximum of 50 pages with
|
|
256 characters per page.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>pages</code> - A list of strings, each being a page</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="toBuilder()">
|
|
<h3>toBuilder</h3>
|
|
<div class="member-signature"><span class="return-type">@NonNull <a href="BookMeta.BookMetaBuilder.html" title="interface in org.bukkit.inventory.meta">BookMeta.BookMetaBuilder</a></span> <span class="element-name">toBuilder</span>()</div>
|
|
<div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#toBuilder()" title="class or interface in net.kyori.adventure.inventory" class="external-link">net.kyori.adventure.inventory.Book</a></code></span></div>
|
|
<div class="block">Create a new builder initialized with the attributes of this book.</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#toBuilder()" title="class or interface in net.kyori.adventure.inventory" class="external-link">toBuilder</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a></code></dd>
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/util/Buildable.html#toBuilder()" title="class or interface in net.kyori.adventure.util" class="external-link">toBuilder</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/util/Buildable.html" title="class or interface in net.kyori.adventure.util" class="external-link">Buildable</a><<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book</a>,<wbr><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.Builder.html" title="class or interface in net.kyori.adventure.inventory" class="external-link">Book.Builder</a>></code></dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the builder</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getPage(int)">
|
|
<h3>getPage</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getPage</span><wbr><span class="parameters">(int page)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="#page(int)"><code>page(int)</code></a></div>
|
|
</div>
|
|
<div class="block">Gets the specified page in the book. The given page must exist.
|
|
<p>
|
|
Pages are 1-indexed.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>page</code> - the page number to get, in range [1, getPageCount()]</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the page from the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setPage(int,java.lang.String)">
|
|
<h3>setPage</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="return-type">void</span> <span class="element-name">setPage</span><wbr><span class="parameters">(int page,
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> data)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="#page(int,net.kyori.adventure.text.Component)"><code>page(int, net.kyori.adventure.text.Component)</code></a></div>
|
|
</div>
|
|
<div class="block">Sets the specified page in the book. Pages of the book must be
|
|
contiguous.
|
|
<p>
|
|
The data can be up to 256 characters in length, additional characters
|
|
are truncated.
|
|
<p>
|
|
Pages are 1-indexed.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>page</code> - the page number to set, in range [1, getPageCount()]</dd>
|
|
<dd><code>data</code> - the data to set for that page</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getPages()">
|
|
<h3>getPages</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></span> <span class="element-name">getPages</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages()" title="class or interface in net.kyori.adventure.inventory" class="external-link"><code>Book.pages()</code></a></div>
|
|
</div>
|
|
<div class="block">Gets all the pages in the book.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>list of all the pages in the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setPages(java.util.List)">
|
|
<h3>setPages</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="return-type">void</span> <span class="element-name">setPages</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>> pages)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages(java.util.List)" title="class or interface in net.kyori.adventure.inventory" class="external-link"><code>Book.pages(List)</code></a></div>
|
|
</div>
|
|
<div class="block">Clears the existing book pages, and sets the book to use the provided
|
|
pages. Maximum 100 pages with 256 characters per page.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>pages</code> - A list of pages to set the book to use</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setPages(java.lang.String...)">
|
|
<h3>setPages</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="return-type">void</span> <span class="element-name">setPages</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>... pages)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/inventory/Book.html#pages(net.kyori.adventure.text.Component...)" title="class or interface in net.kyori.adventure.inventory" class="external-link"><code>Book.pages(net.kyori.adventure.text.Component...)</code></a></div>
|
|
</div>
|
|
<div class="block">Clears the existing book pages, and sets the book to use the provided
|
|
pages. Maximum 50 pages with 256 characters per page.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>pages</code> - A list of strings, each being a page</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="addPage(java.lang.String...)">
|
|
<h3>addPage</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="return-type">void</span> <span class="element-name">addPage</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>... pages)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
|
<div class="deprecation-comment">in favour of <a href="#addPages(net.kyori.adventure.text.Component...)"><code>addPages(net.kyori.adventure.text.Component...)</code></a></div>
|
|
</div>
|
|
<div class="block">Adds new pages to the end of the book. Up to a maximum of 50 pages with
|
|
256 characters per page.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>pages</code> - A list of strings, each being a page</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getPageCount()">
|
|
<h3>getPageCount</h3>
|
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getPageCount</span>()</div>
|
|
<div class="block">Gets the number of pages in the book.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the number of pages in the book</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="clone()">
|
|
<h3>clone</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></span> <span class="element-name">clone</span>()</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="ItemMeta.html#clone()">clone</a></code> in interface <code><a href="ItemMeta.html" title="interface in org.bukkit.inventory.meta">ItemMeta</a></code></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="spigot()">
|
|
<h3>spigot</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BookMeta.Spigot.html" title="class in org.bukkit.inventory.meta">BookMeta.Spigot</a></span> <span class="element-name">spigot</span>()</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|