Scissors-Website/javadoc/1.19.4/org/bukkit/util/class-use/Consumer.html
2023-04-02 20:49:18 -05:00

166 lines
20 KiB
HTML

<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>Uses of Interface org.bukkit.util.Consumer (Scissors-API 1.19.4-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="use: package: org.bukkit.util, interface: Consumer">
<meta name="generator" content="javadoc/ClassUseWriter">
<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.6.0.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-use-page">
<script type="text/javascript">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><a href="../Consumer.html" title="interface in org.bukkit.util">Class</a></li>
<li class="nav-bar-cell1-rev">Use</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#use">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<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">
<div class="header">
<h1 title="Uses of Interface org.bukkit.util.Consumer" class="title">Uses of Interface<br>org.bukkit.util.Consumer</h1>
</div>
<div class="caption"><span>Packages that use <a href="../Consumer.html" title="interface in org.bukkit.util">Consumer</a></span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Package</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><a href="#org.bukkit">org.bukkit</a></div>
<div class="col-last even-row-color">
<div class="block">The root package of the Bukkit API, contains generalized API classes.</div>
</div>
<div class="col-first odd-row-color"><a href="#org.bukkit.projectiles">org.bukkit.projectiles</a></div>
<div class="col-last odd-row-color">
<div class="block">Classes to represent the source of a projectile</div>
</div>
</div>
<section class="class-uses">
<ul class="block-list">
<li>
<section class="detail" id="org.bukkit">
<h2>Uses of <a href="../Consumer.html" title="interface in org.bukkit.util">Consumer</a> in <a href="../../package-summary.html">org.bukkit</a></h2>
<div class="caption"><span>Methods in <a href="../../package-summary.html">org.bukkit</a> with parameters of type <a href="../Consumer.html" title="interface in org.bukkit.util">Consumer</a></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">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><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="../../entity/Item.html" title="interface in org.bukkit.entity">Item</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">World.</span><code><a href="../../World.html#dropItem(org.bukkit.Location,org.bukkit.inventory.ItemStack,org.bukkit.util.Consumer)" class="member-name-link">dropItem</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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="../../inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a>&nbsp;item,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;<a href="../../entity/Item.html" title="interface in org.bukkit.entity">Item</a>&gt;&nbsp;function)</code></div>
<div class="col-last even-row-color">
<div class="block">Drops an item at the specified <a href="../../Location.html" title="class in org.bukkit"><code>Location</code></a>
Note that functions will run before the entity is spawned</div>
</div>
<div class="col-first odd-row-color"><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="../../entity/Item.html" title="interface in org.bukkit.entity">Item</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">World.</span><code><a href="../../World.html#dropItemNaturally(org.bukkit.Location,org.bukkit.inventory.ItemStack,org.bukkit.util.Consumer)" class="member-name-link">dropItemNaturally</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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="../../inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a>&nbsp;item,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;<a href="../../entity/Item.html" title="interface in org.bukkit.entity">Item</a>&gt;&nbsp;function)</code></div>
<div class="col-last odd-row-color">
<div class="block">Drops an item at the specified <a href="../../Location.html" title="class in org.bukkit"><code>Location</code></a> with a random offset
Note that functions will run before the entity is spawned</div>
</div>
<div class="col-first even-row-color"><code>boolean</code></div>
<div class="col-second even-row-color"><span class="type-name-label">RegionAccessor.</span><code><a href="../../RegionAccessor.html#generateTree(org.bukkit.Location,java.util.Random,org.bukkit.TreeType,org.bukkit.util.Consumer)" class="member-name-link">generateTree</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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/Random.html" title="class or interface in java.util" class="external-link">Random</a>&nbsp;random,
<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="../../TreeType.html" title="enum class in org.bukkit">TreeType</a>&nbsp;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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;<a href="../../block/BlockState.html" title="interface in org.bukkit.block">BlockState</a>&gt;&nbsp;stateConsumer)</code></div>
<div class="col-last even-row-color">
<div class="block">Creates a tree at the given <a href="../../Location.html" title="class in org.bukkit"><code>Location</code></a></div>
</div>
<div class="col-first odd-row-color"><code>&lt;T extends <a href="../../entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>&gt;<br>T</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">RegionAccessor.</span><code><a href="../../RegionAccessor.html#spawn(org.bukkit.Location,java.lang.Class,boolean,org.bukkit.util.Consumer)" class="member-name-link">spawn</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;clazz,
boolean&nbsp;randomizeData,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;T&gt;&nbsp;function)</code></div>
<div class="col-last odd-row-color">
<div class="block">Creates a new entity at the given <a href="../../Location.html" title="class in org.bukkit"><code>Location</code></a> with the supplied
function run before the entity is added to the world.</div>
</div>
<div class="col-first even-row-color"><code>default &lt;T extends <a href="../../entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>&gt;<br>T</code></div>
<div class="col-second even-row-color"><span class="type-name-label">RegionAccessor.</span><code><a href="../../RegionAccessor.html#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.util.Consumer)" class="member-name-link">spawn</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;clazz,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;T&gt;&nbsp;function)</code></div>
<div class="col-last even-row-color">
<div class="block">Spawn an entity of a specific class at the given <a href="../../Location.html" title="class in org.bukkit"><code>Location</code></a>, with
the supplied function run before the entity is added to the world.</div>
</div>
<div class="col-first odd-row-color"><code>&lt;T extends <a href="../../entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>&gt;<br>T</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">RegionAccessor.</span><code><a href="../../RegionAccessor.html#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.util.Consumer,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)" class="member-name-link">spawn</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;clazz,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;T&gt;&nbsp;function,
<a href="../../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a>&nbsp;reason)</code></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><code>default &lt;T extends <a href="../../entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>&gt;<br>T</code></div>
<div class="col-second even-row-color"><span class="type-name-label">RegionAccessor.</span><code><a href="../../RegionAccessor.html#spawn(org.bukkit.Location,java.lang.Class,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason,org.bukkit.util.Consumer)" class="member-name-link">spawn</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;location,
<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/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;T&gt;&nbsp;clazz,
<a href="../../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a>&nbsp;reason,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;T&gt;&nbsp;function)</code></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><code>default <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="../../entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">RegionAccessor.</span><code><a href="../../RegionAccessor.html#spawnEntity(org.bukkit.Location,org.bukkit.entity.EntityType,org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason,org.bukkit.util.Consumer)" class="member-name-link">spawnEntity</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="../../Location.html" title="class in org.bukkit">Location</a>&nbsp;loc,
<a href="../../entity/EntityType.html" title="enum class in org.bukkit.entity">EntityType</a>&nbsp;type,
<a href="../../event/entity/CreatureSpawnEvent.SpawnReason.html" title="enum class in org.bukkit.event.entity">CreatureSpawnEvent.SpawnReason</a>&nbsp;reason,
<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="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;<a href="../../entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>&gt;&nbsp;function)</code></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.projectiles">
<h2>Uses of <a href="../Consumer.html" title="interface in org.bukkit.util">Consumer</a> in <a href="../../projectiles/package-summary.html">org.bukkit.projectiles</a></h2>
<div class="caption"><span>Methods in <a href="../../projectiles/package-summary.html">org.bukkit.projectiles</a> with parameters of type <a href="../Consumer.html" title="interface in org.bukkit.util">Consumer</a></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">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>&lt;T extends <a href="../../entity/Projectile.html" title="interface in org.bukkit.entity">Projectile</a>&gt;<br>T</code></div>
<div class="col-second even-row-color"><span class="type-name-label">ProjectileSource.</span><code><a href="../../projectiles/ProjectileSource.html#launchProjectile(java.lang.Class,org.bukkit.util.Vector,org.bukkit.util.Consumer)" class="member-name-link">launchProjectile</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/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;? extends T&gt;&nbsp;projectile,
<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="../Vector.html" title="class in org.bukkit.util">Vector</a>&nbsp;velocity,
<a href="../Consumer.html" title="interface in org.bukkit.util">Consumer</a>&lt;T&gt;&nbsp;function)</code></div>
<div class="col-last even-row-color">
<div class="block">Launches a <a href="../../entity/Projectile.html" title="interface in org.bukkit.entity"><code>Projectile</code></a> from the ProjectileSource with an
initial velocity, with the supplied function run before the
entity is added to the world.</div>
</div>
</div>
</section>
</li>
</ul>
</section>
</main>
</div>
</div>
</body>
</html>