<li><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerProfile.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<dd><code><ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true"title="class or interface in org.bukkit">Keyed</a></code></dd>
implements <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true"title="class or interface in org.bukkit">Keyed</a></pre>
<divclass="block">A very simple API that is meant for adding/getting/clearing custom status effects
to/from players.
The effects are stored via <code>PersistentDataAPI</code> and use NBT data that is
saved across server restarts.
You can specify a level for your status effect too.</div>
<thclass="colConstructorName"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#StatusEffect-org.bukkit.NamespacedKey-">StatusEffect</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true"title="class or interface in org.bukkit">NamespacedKey</a> key)</code></th>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#add-org.bukkit.entity.Player-int-int-java.util.concurrent.TimeUnit-">add</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p,
<ahref="https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html?is-external=true"title="class or interface in java.util.concurrent">TimeUnit</a> unit)</code></th>
<divclass="block">This applies this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> to the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#add-org.bukkit.entity.Player-int-java.util.concurrent.TimeUnit-">add</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p,
<ahref="https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html?is-external=true"title="class or interface in java.util.concurrent">TimeUnit</a> unit)</code></th>
<divclass="block">This applies this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> to the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#addPermanent-org.bukkit.entity.Player-int-">addPermanent</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p,
<divclass="block">This applies this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> to the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#clear-org.bukkit.entity.Player-">clear</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p)</code></th>
<divclass="block">This will remove this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> from the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
</td>
</tr>
<trid="i4"class="altColor">
<tdclass="colFirst"><code><ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true"title="class or interface in org.bukkit">NamespacedKey</a></code></td>
<tdclass="colFirst"><code><ahref="https://docs.oracle.com/javase/9/docs/api/java/util/OptionalInt.html?is-external=true"title="class or interface in java.util">OptionalInt</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#getLevel-org.bukkit.entity.Player-">getLevel</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p)</code></th>
<tdclass="colLast">
<divclass="block">This method returns an <ahref="https://docs.oracle.com/javase/9/docs/api/java/util/OptionalInt.html?is-external=true"title="class or interface in java.util"><code>OptionalInt</code></a> describing the level of this status
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#isPresent-org.bukkit.entity.Player-">isPresent</a></span>​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p)</code></th>
<divclass="block">This will check whether this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> is currently applied
to that <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
<h3>Methods inherited from class java.lang.<ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#clone--"title="class or interface in java.lang">clone</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-"title="class or interface in java.lang">equals</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#finalize--"title="class or interface in java.lang">finalize</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#getClass--"title="class or interface in java.lang">getClass</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#hashCode--"title="class or interface in java.lang">hashCode</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notify--"title="class or interface in java.lang">notify</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notifyAll--"title="class or interface in java.lang">notifyAll</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString--"title="class or interface in java.lang">toString</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait--"title="class or interface in java.lang">wait</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait-long-"title="class or interface in java.lang">wait</a>, <ahref="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait-long-int-"title="class or interface in java.lang">wait</a></code></li>
<pre>public StatusEffect​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true"title="class or interface in org.bukkit">NamespacedKey</a> key)</pre>
<pre>public <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true"title="class or interface in org.bukkit">NamespacedKey</a> getKey​()</pre>
<dd><code><ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true#getKey--"title="class or interface in org.bukkit">getKey</a></code> in interface <code><ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true"title="class or interface in org.bukkit">Keyed</a></code></dd>
<pre>public void add​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p,
<ahref="https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html?is-external=true"title="class or interface in java.util.concurrent">TimeUnit</a> unit)</pre>
<divclass="block">This applies this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> to the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.
You can specify a duration, this will reference
<ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html#add-org.bukkit.entity.Player-int-int-java.util.concurrent.TimeUnit-"><code>add(Player, int, int, TimeUnit)</code></a> with a level of 1.</div>
<dd><code>p</code> - The <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a> whom to apply the effect to</dd>
<dd><code>duration</code> - The duration of how long that status effect shall last</dd>
<dd><code>unit</code> - The <ahref="https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html?is-external=true"title="class or interface in java.util.concurrent"><code>TimeUnit</code></a> for the given duration</dd>
<pre>public void add​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p,
<ahref="https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html?is-external=true"title="class or interface in java.util.concurrent">TimeUnit</a> unit)</pre>
<divclass="block">This applies this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> to the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
<dd><code>p</code> - The <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a> whom to apply the effect to</dd>
<dd><code>level</code> - The level of this effect</dd>
<dd><code>duration</code> - The duration of how long that status effect shall last</dd>
<dd><code>unit</code> - The <ahref="https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html?is-external=true"title="class or interface in java.util.concurrent"><code>TimeUnit</code></a> for the given duration</dd>
<pre>public void addPermanent​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p,
<divclass="block">This applies this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> to the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.
This will apply it permanently, there is no duration.</div>
<dd><code>p</code> - The <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a> whom to apply the effect to</dd>
<dd><code>level</code> - The level of this effect</dd>
<pre>public boolean isPresent​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p)</pre>
<divclass="block">This will check whether this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> is currently applied
to that <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.
If the effect has expired, it will automatically remove all associated
<dd><code>p</code> - The <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a> to check for</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Whether this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> is currently applied</dd>
<pre>public <ahref="https://docs.oracle.com/javase/9/docs/api/java/util/OptionalInt.html?is-external=true"title="class or interface in java.util">OptionalInt</a> getLevel​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p)</pre>
<divclass="block">This method returns an <ahref="https://docs.oracle.com/javase/9/docs/api/java/util/OptionalInt.html?is-external=true"title="class or interface in java.util"><code>OptionalInt</code></a> describing the level of this status
<dd><code>p</code> - The <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a> to check for</dd>
<dd>An <ahref="https://docs.oracle.com/javase/9/docs/api/java/util/OptionalInt.html?is-external=true"title="class or interface in java.util"><code>OptionalInt</code></a> that describes the result</dd>
<pre>public void clear​(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity">Player</a> p)</pre>
<divclass="block">This will remove this <ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/StatusEffect.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>StatusEffect</code></a> from the given <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a>.</div>
<dd><code>p</code> - The <ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html?is-external=true"title="class or interface in org.bukkit.entity"><code>Player</code></a> to clear it from</dd>
<li><ahref="../../../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerProfile.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><spanclass="typeNameLink">Prev Class</span></a></li>