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

231 lines
21 KiB
HTML

<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>Uses of Class org.bukkit.inventory.MerchantRecipe (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.inventory, class: MerchantRecipe">
<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="../MerchantRecipe.html" title="class in org.bukkit.inventory">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 Class org.bukkit.inventory.MerchantRecipe" class="title">Uses of Class<br>org.bukkit.inventory.MerchantRecipe</h1>
</div>
<div class="caption"><span>Packages that use <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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="#io.papermc.paper.event.player">io.papermc.paper.event.player</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="#org.bukkit.event.entity">org.bukkit.event.entity</a></div>
<div class="col-last odd-row-color">
<div class="block"><a href="../../event/Event.html" title="class in org.bukkit.event"><code>Events</code></a> relating to <a href="../../entity/Entity.html" title="interface in org.bukkit.entity"><code>entities</code></a>, excluding some directly referencing
some more specific entity types.</div>
</div>
<div class="col-first even-row-color"><a href="#org.bukkit.inventory">org.bukkit.inventory</a></div>
<div class="col-last even-row-color">
<div class="block">Classes involved in manipulating player inventories and item interactions.</div>
</div>
</div>
<section class="class-uses">
<ul class="block-list">
<li>
<section class="detail" id="io.papermc.paper.event.player">
<h2>Uses of <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a> in <a href="../../../../io/papermc/paper/event/player/package-summary.html">io.papermc.paper.event.player</a></h2>
<div class="caption"><span>Methods in <a href="../../../../io/papermc/paper/event/player/package-summary.html">io.papermc.paper.event.player</a> that return <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">PlayerPurchaseEvent.</span><code><a href="../../../../io/papermc/paper/event/player/PlayerPurchaseEvent.html#getTrade()" class="member-name-link">getTrade</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Gets the associated trade with this event</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../../../../io/papermc/paper/event/player/package-summary.html">io.papermc.paper.event.player</a> with parameters of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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>void</code></div>
<div class="col-second even-row-color"><span class="type-name-label">PlayerPurchaseEvent.</span><code><a href="../../../../io/papermc/paper/event/player/PlayerPurchaseEvent.html#setTrade(org.bukkit.inventory.MerchantRecipe)" class="member-name-link">setTrade</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;trade)</code></div>
<div class="col-last even-row-color">
<div class="block">Sets the trade.</div>
</div>
</div>
<div class="caption"><span>Constructors in <a href="../../../../io/papermc/paper/event/player/package-summary.html">io.papermc.paper.event.player</a> with parameters of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier</div>
<div class="table-header col-second">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>&nbsp;</code></div>
<div class="col-second even-row-color"><code><a href="../../../../io/papermc/paper/event/player/PlayerPurchaseEvent.html#%3Cinit%3E(org.bukkit.entity.Player,org.bukkit.inventory.MerchantRecipe,boolean,boolean)" class="member-name-link">PlayerPurchaseEvent</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="../../entity/Player.html" title="interface in org.bukkit.entity">Player</a>&nbsp;player,
<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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;trade,
boolean&nbsp;rewardExp,
boolean&nbsp;increaseTradeUses)</code></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><code>&nbsp;</code></div>
<div class="col-second odd-row-color"><code><a href="../../../../io/papermc/paper/event/player/PlayerTradeEvent.html#%3Cinit%3E(org.bukkit.entity.Player,org.bukkit.entity.AbstractVillager,org.bukkit.inventory.MerchantRecipe,boolean,boolean)" class="member-name-link">PlayerTradeEvent</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="../../entity/Player.html" title="interface in org.bukkit.entity">Player</a>&nbsp;player,
<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/AbstractVillager.html" title="interface in org.bukkit.entity">AbstractVillager</a>&nbsp;villager,
<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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;trade,
boolean&nbsp;rewardExp,
boolean&nbsp;increaseTradeUses)</code></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.event.entity">
<h2>Uses of <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a> in <a href="../../event/entity/package-summary.html">org.bukkit.event.entity</a></h2>
<div class="caption"><span>Methods in <a href="../../event/entity/package-summary.html">org.bukkit.event.entity</a> that return <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">VillagerAcquireTradeEvent.</span><code><a href="../../event/entity/VillagerAcquireTradeEvent.html#getRecipe()" class="member-name-link">getRecipe</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Get the recipe to be acquired.</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">VillagerReplenishTradeEvent.</span><code><a href="../../event/entity/VillagerReplenishTradeEvent.html#getRecipe()" class="member-name-link">getRecipe</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Get the recipe to replenish.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../../event/entity/package-summary.html">org.bukkit.event.entity</a> with parameters of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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>void</code></div>
<div class="col-second even-row-color"><span class="type-name-label">VillagerAcquireTradeEvent.</span><code><a href="../../event/entity/VillagerAcquireTradeEvent.html#setRecipe(org.bukkit.inventory.MerchantRecipe)" class="member-name-link">setRecipe</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;recipe)</code></div>
<div class="col-last even-row-color">
<div class="block">Set the recipe to be acquired.</div>
</div>
<div class="col-first odd-row-color"><code>void</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">VillagerReplenishTradeEvent.</span><code><a href="../../event/entity/VillagerReplenishTradeEvent.html#setRecipe(org.bukkit.inventory.MerchantRecipe)" class="member-name-link">setRecipe</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;recipe)</code></div>
<div class="col-last odd-row-color">
<div class="block">Set the recipe to replenish.</div>
</div>
</div>
<div class="caption"><span>Constructors in <a href="../../event/entity/package-summary.html">org.bukkit.event.entity</a> with parameters of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier</div>
<div class="table-header col-second">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>&nbsp;</code></div>
<div class="col-second even-row-color"><code><a href="../../event/entity/VillagerAcquireTradeEvent.html#%3Cinit%3E(org.bukkit.entity.AbstractVillager,org.bukkit.inventory.MerchantRecipe)" class="member-name-link">VillagerAcquireTradeEvent</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="../../entity/AbstractVillager.html" title="interface in org.bukkit.entity">AbstractVillager</a>&nbsp;what,
<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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;recipe)</code></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><code>&nbsp;</code></div>
<div class="col-second odd-row-color"><code><a href="../../event/entity/VillagerReplenishTradeEvent.html#%3Cinit%3E(org.bukkit.entity.AbstractVillager,org.bukkit.inventory.MerchantRecipe)" class="member-name-link">VillagerReplenishTradeEvent</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="../../entity/AbstractVillager.html" title="interface in org.bukkit.entity">AbstractVillager</a>&nbsp;what,
<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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;recipe)</code></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.inventory">
<h2>Uses of <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a> in <a href="../package-summary.html">org.bukkit.inventory</a></h2>
<div class="caption"><span>Methods in <a href="../package-summary.html">org.bukkit.inventory</a> that return <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">Merchant.</span><code><a href="../Merchant.html#getRecipe(int)" class="member-name-link">getRecipe</a><wbr>(int&nbsp;i)</code></div>
<div class="col-last even-row-color">
<div class="block">Get the recipe at a certain index of this merchant's trade list.</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/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">MerchantInventory.</span><code><a href="../MerchantInventory.html#getSelectedRecipe()" class="member-name-link">getSelectedRecipe</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Get the currently active recipe.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../package-summary.html">org.bukkit.inventory</a> that return types with arguments of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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="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>&lt;<a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&gt;</code></div>
<div class="col-second even-row-color"><span class="type-name-label">Merchant.</span><code><a href="../Merchant.html#getRecipes()" class="member-name-link">getRecipes</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Get a list of trades currently available from this merchant.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../package-summary.html">org.bukkit.inventory</a> with parameters of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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>void</code></div>
<div class="col-second even-row-color"><span class="type-name-label">Merchant.</span><code><a href="../Merchant.html#setRecipe(int,org.bukkit.inventory.MerchantRecipe)" class="member-name-link">setRecipe</a><wbr>(int&nbsp;i,
<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="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&nbsp;recipe)</code></div>
<div class="col-last even-row-color">
<div class="block">Set the recipe at a certain index of this merchant's trade list.</div>
</div>
</div>
<div class="caption"><span>Method parameters in <a href="../package-summary.html">org.bukkit.inventory</a> with type arguments of type <a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</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>void</code></div>
<div class="col-second even-row-color"><span class="type-name-label">Merchant.</span><code><a href="../Merchant.html#setRecipes(java.util.List)" class="member-name-link">setRecipes</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>&lt;<a href="../MerchantRecipe.html" title="class in org.bukkit.inventory">MerchantRecipe</a>&gt;&nbsp;recipes)</code></div>
<div class="col-last even-row-color">
<div class="block">Set the list of trades currently available from this merchant.</div>
</div>
</div>
</section>
</li>
</ul>
</section>
</main>
</div>
</div>
</body>
</html>