<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html"title="class or interface in java.util.function"class="external-link">Consumer</a><<ahref="Chunk.html"title="interface in org.bukkit">Chunk</a>></code></dd>
</dl>
<dlclass="notes">
<dt>Enclosing interface:</dt>
<dd><ahref="World.html"title="interface in org.bukkit">World</a></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="annotations"><ahref="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>
extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html"title="class or interface in java.util.function"class="external-link">Consumer</a><<ahref="Chunk.html"title="interface in org.bukkit">Chunk</a>></span></div>
<divclass="deprecation-comment">Use either the Future or the Consumer based methods</div>
</div>
<divclass="block">This is the Legacy API before Java 8 was supported. Java 8 Consumer is provided,
as well as future support
Used by <ahref="World.html#getChunkAtAsync(org.bukkit.Location,java.util.function.Consumer)"><code>World.getChunkAtAsync(Location,ChunkLoadCallback)</code></a> methods
to request a <ahref="Chunk.html"title="interface in org.bukkit"><code>Chunk</code></a> to be loaded, with this callback receiving
the chunk when it is finished.
This callback will be executed on synchronously on the main thread.
Timing and order this callback is fired is intentionally not defined and
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code><ahref="#accept(org.bukkit.Chunk)"class="member-name-link">accept</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="Chunk.html"title="interface in org.bukkit">Chunk</a> chunk)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><ahref="#onLoad(org.bukkit.Chunk)"class="member-name-link">onLoad</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="Chunk.html"title="interface in org.bukkit">Chunk</a> chunk)</code></div>
<h3id="methods-inherited-from-class-java.util.function.Consumer">Methods inherited from interface java.util.function.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html"title="class or interface in java.util.function"class="external-link">Consumer</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html#andThen(java.util.function.Consumer)"title="class or interface in java.util.function"class="external-link">andThen</a></code></div>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">onLoad</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="Chunk.html"title="interface in org.bukkit">Chunk</a> chunk)</span></div>
<divclass="member-signature"><spanclass="modifiers">default</span> <spanclass="return-type">void</span> <spanclass="element-name">accept</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="Chunk.html"title="interface in org.bukkit">Chunk</a> chunk)</span></div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html#accept(T)"title="class or interface in java.util.function"class="external-link">accept</a></code> in interface <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html"title="class or interface in java.util.function"class="external-link">Consumer</a><<ahref="Chunk.html"title="interface in org.bukkit">Chunk</a>></code></dd>