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

403 lines
42 KiB
HTML

<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>Uses of Class org.bukkit.potion.PotionEffect (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.potion, class: PotionEffect">
<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="../PotionEffect.html" title="class in org.bukkit.potion">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.potion.PotionEffect" class="title">Uses of Class<br>org.bukkit.potion.PotionEffect</h1>
</div>
<div class="caption"><span>Packages that use <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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="#com.destroystokyo.paper.event.block">com.destroystokyo.paper.event.block</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="#org.bukkit.block">org.bukkit.block</a></div>
<div class="col-last odd-row-color">
<div class="block">Classes used to manipulate the voxels in a <a href="../../World.html" title="interface in org.bukkit"><code>world</code></a>,
including special states.</div>
</div>
<div class="col-first even-row-color"><a href="#org.bukkit.entity">org.bukkit.entity</a></div>
<div class="col-last even-row-color">
<div class="block">Interfaces for non-voxel objects that can exist in a <a href="../../World.html" title="interface in org.bukkit"><code>world</code></a>, including all players, monsters, projectiles, etc.</div>
</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.meta">org.bukkit.inventory.meta</a></div>
<div class="col-last even-row-color">
<div class="block">The interfaces used when manipulating extra data can can be stored inside
<a href="../../inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>item stacks</code></a>.</div>
</div>
<div class="col-first odd-row-color"><a href="#org.bukkit.potion">org.bukkit.potion</a></div>
<div class="col-last odd-row-color">
<div class="block">Classes to represent various <a href="../../Material.html#POTION"><code>potion</code></a>
properties and manipulation.</div>
</div>
</div>
<section class="class-uses">
<ul class="block-list">
<li>
<section class="detail" id="com.destroystokyo.paper.event.block">
<h2>Uses of <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a> in <a href="../../../../com/destroystokyo/paper/event/block/package-summary.html">com.destroystokyo.paper.event.block</a></h2>
<div class="caption"><span>Methods in <a href="../../../../com/destroystokyo/paper/event/block/package-summary.html">com.destroystokyo.paper.event.block</a> that return <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">BeaconEffectEvent.</span><code><a href="../../../../com/destroystokyo/paper/event/block/BeaconEffectEvent.html#getEffect()" class="member-name-link">getEffect</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Gets the potion effect being applied.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../../../../com/destroystokyo/paper/event/block/package-summary.html">com.destroystokyo.paper.event.block</a> with parameters of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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">BeaconEffectEvent.</span><code><a href="../../../../com/destroystokyo/paper/event/block/BeaconEffectEvent.html#setEffect(org.bukkit.potion.PotionEffect)" class="member-name-link">setEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect)</code></div>
<div class="col-last even-row-color">
<div class="block">Sets the potion effect that will be applied.</div>
</div>
</div>
<div class="caption"><span>Constructors in <a href="../../../../com/destroystokyo/paper/event/block/package-summary.html">com.destroystokyo.paper.event.block</a> with parameters of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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="../../../../com/destroystokyo/paper/event/block/BeaconEffectEvent.html#%3Cinit%3E(org.bukkit.block.Block,org.bukkit.potion.PotionEffect,org.bukkit.entity.Player,boolean)" class="member-name-link">BeaconEffectEvent</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="../../block/Block.html" title="interface in org.bukkit.block">Block</a>&nbsp;block,
<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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect,
<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,
boolean&nbsp;primary)</code></div>
<div class="col-last even-row-color">&nbsp;</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.block">
<h2>Uses of <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a> in <a href="../../block/package-summary.html">org.bukkit.block</a></h2>
<div class="caption"><span>Methods in <a href="../../block/package-summary.html">org.bukkit.block</a> that return <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">Beacon.</span><code><a href="../../block/Beacon.html#getPrimaryEffect()" class="member-name-link">getPrimaryEffect</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Returns the primary effect set on the beacon</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">Beacon.</span><code><a href="../../block/Beacon.html#getSecondaryEffect()" class="member-name-link">getSecondaryEffect</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Returns the secondary effect set on the beacon.</div>
</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.entity">
<h2>Uses of <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a> in <a href="../../entity/package-summary.html">org.bukkit.entity</a></h2>
<div class="caption"><span>Methods in <a href="../../entity/package-summary.html">org.bukkit.entity</a> that return <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">LivingEntity.</span><code><a href="../../entity/LivingEntity.html#getPotionEffect(org.bukkit.potion.PotionEffectType)" class="member-name-link">getPotionEffect</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="../PotionEffectType.html" title="class in org.bukkit.potion">PotionEffectType</a>&nbsp;type)</code></div>
<div class="col-last even-row-color">
<div class="block">Returns the active <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a> of the specified type.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../../entity/package-summary.html">org.bukkit.entity</a> that return types with arguments of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second even-row-color"><span class="type-name-label">LivingEntity.</span><code><a href="../../entity/LivingEntity.html#getActivePotionEffects()" class="member-name-link">getActivePotionEffects</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Returns all currently active <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a>s on the living
entity.</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="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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">AreaEffectCloud.</span><code><a href="../../entity/AreaEffectCloud.html#getCustomEffects()" class="member-name-link">getCustomEffects</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Gets an immutable list containing all custom potion effects applied to
this cloud.</div>
</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second even-row-color"><span class="type-name-label">Arrow.</span><code><a href="../../entity/Arrow.html#getCustomEffects()" class="member-name-link">getCustomEffects</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Gets an immutable list containing all custom potion effects applied to
this arrow.</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="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>&lt;<a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">ThrownPotion.</span><code><a href="../../entity/ThrownPotion.html#getEffects()" class="member-name-link">getEffects</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Returns the effects that are applied by this potion.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../../entity/package-summary.html">org.bukkit.entity</a> with parameters of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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>boolean</code></div>
<div class="col-second even-row-color"><span class="type-name-label">AreaEffectCloud.</span><code><a href="../../entity/AreaEffectCloud.html#addCustomEffect(org.bukkit.potion.PotionEffect,boolean)" class="member-name-link">addCustomEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect,
boolean&nbsp;overwrite)</code></div>
<div class="col-last even-row-color">
<div class="block">Adds a custom potion effect to this cloud.</div>
</div>
<div class="col-first odd-row-color"><code>boolean</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">Arrow.</span><code><a href="../../entity/Arrow.html#addCustomEffect(org.bukkit.potion.PotionEffect,boolean)" class="member-name-link">addCustomEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect,
boolean&nbsp;overwrite)</code></div>
<div class="col-last odd-row-color">
<div class="block">Adds a custom potion effect to this arrow.</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">LivingEntity.</span><code><a href="../../entity/LivingEntity.html#addPotionEffect(org.bukkit.potion.PotionEffect)" class="member-name-link">addPotionEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect)</code></div>
<div class="col-last even-row-color">
<div class="block">Adds the given <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living entity.</div>
</div>
<div class="col-first odd-row-color"><code>boolean</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">LivingEntity.</span><code><a href="../../entity/LivingEntity.html#addPotionEffect(org.bukkit.potion.PotionEffect,boolean)" class="member-name-link">addPotionEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect,
boolean&nbsp;force)</code></div>
<div class="col-last odd-row-color">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">no need to force since multiple effects of the same type are
now supported.</div>
</div>
</div>
</div>
<div class="caption"><span>Method parameters in <a href="../../entity/package-summary.html">org.bukkit.entity</a> with type arguments of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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>boolean</code></div>
<div class="col-second even-row-color"><span class="type-name-label">LivingEntity.</span><code><a href="../../entity/LivingEntity.html#addPotionEffects(java.util.Collection)" class="member-name-link">addPotionEffects</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/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;&nbsp;effects)</code></div>
<div class="col-last even-row-color">
<div class="block">Attempts to add all of the given <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a> to the living
entity.</div>
</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.event.entity">
<h2>Uses of <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">EntityPotionEffectEvent.</span><code><a href="../../event/entity/EntityPotionEffectEvent.html#getNewEffect()" class="member-name-link">getNewEffect</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Gets new potion effect of the changed type to be applied.</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">EntityPotionEffectEvent.</span><code><a href="../../event/entity/EntityPotionEffectEvent.html#getOldEffect()" class="member-name-link">getOldEffect</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Gets the old potion effect of the changed type, which will be removed.</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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/EntityPotionEffectEvent.html#%3Cinit%3E(org.bukkit.entity.LivingEntity,org.bukkit.potion.PotionEffect,org.bukkit.potion.PotionEffect,org.bukkit.event.entity.EntityPotionEffectEvent.Cause,org.bukkit.event.entity.EntityPotionEffectEvent.Action,boolean)" class="member-name-link">EntityPotionEffectEvent</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/LivingEntity.html" title="interface in org.bukkit.entity">LivingEntity</a>&nbsp;livingEntity,
<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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;oldEffect,
<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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;newEffect,
<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="../../event/entity/EntityPotionEffectEvent.Cause.html" title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Cause</a>&nbsp;cause,
<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="../../event/entity/EntityPotionEffectEvent.Action.html" title="enum class in org.bukkit.event.entity">EntityPotionEffectEvent.Action</a>&nbsp;action,
boolean&nbsp;override)</code></div>
<div class="col-last even-row-color">&nbsp;</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.inventory.meta">
<h2>Uses of <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a> in <a href="../../inventory/meta/package-summary.html">org.bukkit.inventory.meta</a></h2>
<div class="caption"><span>Methods in <a href="../../inventory/meta/package-summary.html">org.bukkit.inventory.meta</a> that return types with arguments of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionMeta.</span><code><a href="../../inventory/meta/PotionMeta.html#getCustomEffects()" class="member-name-link">getCustomEffects</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Gets an immutable list containing all custom potion effects applied to
this potion.</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="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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">SuspiciousStewMeta.</span><code><a href="../../inventory/meta/SuspiciousStewMeta.html#getCustomEffects()" class="member-name-link">getCustomEffects</a>()</code></div>
<div class="col-last odd-row-color">
<div class="block">Gets an immutable list containing all custom potion effects applied to
this suspicious stew.</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../../inventory/meta/package-summary.html">org.bukkit.inventory.meta</a> with parameters of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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>boolean</code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionMeta.</span><code><a href="../../inventory/meta/PotionMeta.html#addCustomEffect(org.bukkit.potion.PotionEffect,boolean)" class="member-name-link">addCustomEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect,
boolean&nbsp;overwrite)</code></div>
<div class="col-last even-row-color">
<div class="block">Adds a custom potion effect to this potion.</div>
</div>
<div class="col-first odd-row-color"><code>boolean</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">SuspiciousStewMeta.</span><code><a href="../../inventory/meta/SuspiciousStewMeta.html#addCustomEffect(org.bukkit.potion.PotionEffect,boolean)" class="member-name-link">addCustomEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;effect,
boolean&nbsp;overwrite)</code></div>
<div class="col-last odd-row-color">
<div class="block">Adds a custom potion effect to this suspicious stew.</div>
</div>
</div>
</section>
</li>
<li>
<section class="detail" id="org.bukkit.potion">
<h2>Uses of <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a> in <a href="../package-summary.html">org.bukkit.potion</a></h2>
<div class="caption"><span>Methods in <a href="../package-summary.html">org.bukkit.potion</a> that return <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionBrewer.</span><code><a href="../PotionBrewer.html#createEffect(org.bukkit.potion.PotionEffectType,int,int)" class="member-name-link">createEffect</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="../PotionEffectType.html" title="class in org.bukkit.potion">PotionEffectType</a>&nbsp;potion,
int&nbsp;duration,
int&nbsp;amplifier)</code></div>
<div class="col-last even-row-color">
<div class="block">Creates a <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a> from the given <a href="../PotionEffectType.html" title="class in org.bukkit.potion"><code>PotionEffectType</code></a>,
applying duration modifiers and checks.</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">PotionEffectType.</span><code><a href="../PotionEffectType.html#createEffect(int,int)" class="member-name-link">createEffect</a><wbr>(int&nbsp;duration,
int&nbsp;amplifier)</code></div>
<div class="col-last odd-row-color">
<div class="block">Creates a PotionEffect from this PotionEffectType, applying duration
modifiers and checks.</div>
</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#withAmbient(boolean)" class="member-name-link">withAmbient</a><wbr>(boolean&nbsp;ambient)</code></div>
<div class="col-last even-row-color">&nbsp;</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#withAmplifier(int)" class="member-name-link">withAmplifier</a><wbr>(int&nbsp;amplifier)</code></div>
<div class="col-last odd-row-color">&nbsp;</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#withDuration(int)" class="member-name-link">withDuration</a><wbr>(int&nbsp;duration)</code></div>
<div class="col-last even-row-color">&nbsp;</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#withIcon(boolean)" class="member-name-link">withIcon</a><wbr>(boolean&nbsp;icon)</code></div>
<div class="col-last odd-row-color">&nbsp;</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#withParticles(boolean)" class="member-name-link">withParticles</a><wbr>(boolean&nbsp;particles)</code></div>
<div class="col-last even-row-color">&nbsp;</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a></code></div>
<div class="col-second odd-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#withType(org.bukkit.potion.PotionEffectType)" class="member-name-link">withType</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="../PotionEffectType.html" title="class in org.bukkit.potion">PotionEffectType</a>&nbsp;type)</code></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
<div class="caption"><span>Methods in <a href="../package-summary.html">org.bukkit.potion</a> that return types with arguments of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second even-row-color"><span class="type-name-label">Potion.</span><code><a href="../Potion.html#getEffects()" class="member-name-link">getEffects</a>()</code></div>
<div class="col-last even-row-color">
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Returns a collection of <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a>s that this <a href="../Potion.html" title="class in org.bukkit.potion"><code>Potion</code></a>
would confer upon a <a href="../../entity/LivingEntity.html" title="interface in org.bukkit.entity"><code>LivingEntity</code></a>.</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="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>&lt;<a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second odd-row-color"><span class="type-name-label">PotionBrewer.</span><code><a href="../PotionBrewer.html#getEffects(org.bukkit.potion.PotionType,boolean,boolean)" class="member-name-link">getEffects</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="../PotionType.html" title="enum class in org.bukkit.potion">PotionType</a>&nbsp;type,
boolean&nbsp;upgraded,
boolean&nbsp;extended)</code></div>
<div class="col-last odd-row-color">
<div class="block">Returns a collection of <a href="../PotionEffect.html" title="class in org.bukkit.potion"><code>PotionEffect</code></a> that would be applied from
a potion with the given type.</div>
</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/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&gt;</code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionBrewer.</span><code><a href="../PotionBrewer.html#getEffectsFromDamage(int)" class="member-name-link">getEffectsFromDamage</a><wbr>(int&nbsp;damage)</code></div>
<div class="col-last even-row-color">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Non-Functional</div>
</div>
</div>
</div>
<div class="caption"><span>Methods in <a href="../package-summary.html">org.bukkit.potion</a> with parameters of type <a href="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</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>boolean</code></div>
<div class="col-second even-row-color"><span class="type-name-label">PotionEffect.</span><code><a href="../PotionEffect.html#isShorterThan(org.bukkit.potion.PotionEffect)" class="member-name-link">isShorterThan</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="../PotionEffect.html" title="class in org.bukkit.potion">PotionEffect</a>&nbsp;other)</code></div>
<div class="col-last even-row-color">
<div class="block">Returns whether or not this potion effect has a shorter duration than the
provided potion effect.</div>
</div>
</div>
</section>
</li>
</ul>
</section>
</main>
</div>
</div>
</body>
</html>