<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addPluginChunkTicket(org.bukkit.plugin.Plugin)"class="member-name-link">addPluginChunkTicket</a><wbr>(<ahref="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><ahref="plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#contains(org.bukkit.block.data.BlockData)"class="member-name-link">contains</a><wbr>(<ahref="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><ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> block)</code></div>
<divclass="block">Tests if this chunk contains the specified block.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="block/Block.html"title="interface in org.bukkit.block">Block</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1"><code><ahref="#getChunkKey(org.bukkit.Location)"class="member-name-link">getChunkKey</a><wbr>(<ahref="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><ahref="Location.html"title="class in org.bukkit">Location</a> loc)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="ChunkSnapshot.html"title="interface in org.bukkit">ChunkSnapshot</a></code></div>
<divclass="block">Capture thread-safe read-only snapshot of chunk data</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="ChunkSnapshot.html"title="interface in org.bukkit">ChunkSnapshot</a></code></div>
<divclass="block">Capture thread-safe read-only snapshot of chunk data</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>[]</code></div>
<divclass="block">Gets the amount of time in ticks that this chunk has been inhabited.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a>></code></div>
<divclass="block">Retrieves a collection specifying which plugins have tickets for this
chunk.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <ahref="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><ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>[]</code></div>
<divclass="block">Get a list of all tile entities in the chunk.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>[]</code></div>
<divclass="block">Get a list of all tile entities in the chunk.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#getTileEntities(java.util.function.Predicate,boolean)"class="member-name-link">getTileEntities</a><wbr>(<ahref="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><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="block/Block.html"title="interface in org.bukkit.block">Block</a>> blockPredicate,
<divclass="block">Get a list of all tile entities that match a given predicate in the chunk.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="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><ahref="World.html"title="interface in org.bukkit">World</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#removePluginChunkTicket(org.bukkit.plugin.Plugin)"class="member-name-link">removePluginChunkTicket</a><wbr>(<ahref="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><ahref="plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
<divclass="block">Unloads and optionally saves the Chunk</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.persistence.PersistentDataHolder">Methods inherited from interface org.bukkit.persistence.<ahref="persistence/PersistentDataHolder.html"title="interface in org.bukkit.persistence">PersistentDataHolder</a></h3>
<divclass="member-signature"><spanclass="modifiers">static</span> <spanclass="return-type">long</span> <spanclass="element-name">getChunkKey</span><wbr><spanclass="parameters">(<ahref="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>
<ahref="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><ahref="Location.html"title="class in org.bukkit">Location</a> loc)</span></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>loc</code> - Location to get chunk key</dd>
<dt>Returns:</dt>
<dd>Location's chunk coordinates packed into a long</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="World.html"title="interface in org.bukkit">World</a></span> <spanclass="element-name">getWorld</span>()</div>
<divclass="block">Gets the world containing this chunk</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Parent World</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBlock(int,int,int)">
<h3>getBlock</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="block/Block.html"title="interface in org.bukkit.block">Block</a></span> <spanclass="element-name">getBlock</span><wbr><spanclass="parameters">(int x,
int y,
int z)</span></div>
<divclass="block">Gets a block from this chunk</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - 0-15</dd>
<dd><code>y</code> - world minHeight (inclusive) - world maxHeight (exclusive)</dd>
<dd><code>z</code> - 0-15</dd>
<dt>Returns:</dt>
<dd>the Block</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getChunkSnapshot()">
<h3>getChunkSnapshot</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="ChunkSnapshot.html"title="interface in org.bukkit">ChunkSnapshot</a></span> <spanclass="element-name">getChunkSnapshot</span>()</div>
<divclass="block">Capture thread-safe read-only snapshot of chunk data</div>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="ChunkSnapshot.html"title="interface in org.bukkit">ChunkSnapshot</a></span> <spanclass="element-name">getChunkSnapshot</span><wbr><spanclass="parameters">(boolean includeMaxblocky,
boolean includeBiome,
boolean includeBiomeTempRain)</span></div>
<divclass="block">Capture thread-safe read-only snapshot of chunk data</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>includeMaxblocky</code> - - if true, snapshot includes per-coordinate
maximum Y values</dd>
<dd><code>includeBiome</code> - - if true, snapshot includes per-coordinate biome
type</dd>
<dd><code>includeBiomeTempRain</code> - - if true, snapshot includes per-coordinate
<divclass="block">Checks if entities in this chunk are loaded.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>True if entities are loaded.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getEntities()">
<h3>getEntities</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="entity/Entity.html"title="interface in org.bukkit.entity">Entity</a>[]</span> <spanclass="element-name">getEntities</span>()</div>
<divclass="block">Get a list of all entities in the chunk.
This will force load any entities, which are not loaded.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The entities.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getTileEntities()">
<h3>getTileEntities</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="modifiers">default</span> <spanclass="return-type"><ahref="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><ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>[]</span> <spanclass="element-name">getTileEntities</span>()</div>
<divclass="block">Get a list of all tile entities in the chunk.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>[]</span> <spanclass="element-name">getTileEntities</span><wbr><spanclass="parameters">(boolean useSnapshot)</span></div>
<divclass="block">Get a list of all tile entities in the chunk.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>useSnapshot</code> - Take snapshots or direct references</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="block/BlockState.html"title="interface in org.bukkit.block">BlockState</a>></span> <spanclass="element-name">getTileEntities</span><wbr><spanclass="parameters">(<ahref="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>
<ahref="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><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="block/Block.html"title="interface in org.bukkit.block">Block</a>> blockPredicate,
boolean useSnapshot)</span></div>
<divclass="block">Get a list of all tile entities that match a given predicate in the chunk.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>blockPredicate</code> - The predicate of blocks to return tile entities for</dd>
<dd><code>useSnapshot</code> - Take snapshots or direct references</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">addPluginChunkTicket</span><wbr><spanclass="parameters">(<ahref="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>
<ahref="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><ahref="plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Adds a plugin ticket for this chunk, loading this chunk if it is not
already loaded.
<p>
A plugin ticket will prevent a chunk from unloading until it is
explicitly removed. A plugin instance may only have one ticket per chunk,
but each chunk can have multiple plugin tickets.
</p></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plugin</code> - Plugin which owns the ticket</dd>
<dt>Returns:</dt>
<dd><code>true</code> if a plugin ticket was added, <code>false</code> if the
ticket already exists for the plugin</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html"title="class or interface in java.lang"class="external-link">IllegalStateException</a></code> - If the specified plugin is not enabled</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">removePluginChunkTicket</span><wbr><spanclass="parameters">(<ahref="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>
<ahref="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><ahref="plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
<divclass="block">Removes the specified plugin's ticket for this chunk
<p>
A plugin ticket will prevent a chunk from unloading until it is
explicitly removed. A plugin instance may only have one ticket per chunk,
but each chunk can have multiple plugin tickets.
</p></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plugin</code> - Plugin which owns the ticket</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the plugin ticket was removed, <code>false</code> if
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="return-type"><ahref="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><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html"title="class or interface in java.util"class="external-link">Collection</a><<ahref="plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a>></span> <spanclass="element-name">getPluginChunkTickets</span>()</div>
<divclass="block">Retrieves a collection specifying which plugins have tickets for this
chunk. This collection is not updated when plugin tickets are added or
removed to this chunk.
<p>
A plugin ticket will prevent a chunk from unloading until it is
explicitly removed. A plugin instance may only have one ticket per chunk,
but each chunk can have multiple plugin tickets.
</p></div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>unmodifiable collection containing which plugins have tickets for
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">contains</span><wbr><spanclass="parameters">(<ahref="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>
<ahref="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><ahref="block/data/BlockData.html"title="interface in org.bukkit.block.data">BlockData</a> block)</span></div>
<divclass="block">Tests if this chunk contains the specified block.</div>