if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PlayerProfile";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":10,"i7":10,"i8":9,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":9,"i18":10,"i19":9,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
<li><ahref="../../../../me/mrCookieSlime/Slimefun/api/GuideHandler.html"title="interface in me.mrCookieSlime.Slimefun.api"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../me/mrCookieSlime/Slimefun/api/Slimefun.html"title="class in me.mrCookieSlime.Slimefun.api"><spanclass="typeNameLink">Next Class</span></a></li>
<divclass="block">A class that can store a Player's <ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> progress for caching purposes.
It also holds the backpacks of a <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><ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>,
<ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player"><code>PlayerBackpack</code></a></dd>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a></code></td>
<tdclass="colFirst"><code>static java.util.Optional<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#find-org.bukkit.OfflinePlayer-">find</a></span>(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true"title="class or interface in org.bukkit">OfflinePlayer</a> p)</code> </td>
</tr>
<trid="i2"class="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a></code></td>
<divclass="block">This is now deprecated, use <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#fromUUID-java.util.UUID-java.util.function.Consumer-"><code>fromUUID(UUID, Consumer)</code></a> instead</div>
java.util.function.Consumer<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</code> </td>
</tr>
<trid="i4"class="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-">get</a></span>(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true"title="class or interface in org.bukkit">OfflinePlayer</a> p)</code>
<divclass="block">This is now deprecated, use <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-java.util.function.Consumer-"><code>get(OfflinePlayer, Consumer)</code></a> instead</div>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-java.util.function.Consumer-">get</a></span>(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true"title="class or interface in org.bukkit">OfflinePlayer</a> p,
java.util.function.Consumer<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</code>
<divclass="block">Get the PlayerProfile for a player asynchronously.</div>
</td>
</tr>
<trid="i6"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../io/github/thebusybiscuit/slimefun4/api/items/HashedArmorpiece.html"title="class in io.github.thebusybiscuit.slimefun4.api.items">HashedArmorpiece</a>[]</code></td>
<tdclass="colFirst"><code><ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a></code></td>
<tdclass="colFirst"><code>static <ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getBackpack-org.bukkit.inventory.ItemStack-">getBackpack</a></span>(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemStack.html?is-external=true"title="class or interface in org.bukkit.inventory">ItemStack</a> item)</code> </td>
<tdclass="colFirst"><code><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></code></td>
<tdclass="colFirst"><code>java.util.Set<<ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects">Research</a>></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#hasUnlocked-me.mrCookieSlime.Slimefun.Objects.Research-">hasUnlocked</a></span>(<ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research)</code>
<divclass="block">This method returns whether the Player has unlocked the given Research</div>
<divclass="block">This method returns whether the Player has logged off.</div>
</td>
</tr>
<trid="i19"class="rowColor">
<tdclass="colFirst"><code>static java.util.Iterator<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>></code></td>
<divclass="block">This method will save the Player's Researches and Backpacks to the hard drive</div>
</td>
</tr>
<trid="i23"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#sendStats-org.bukkit.command.CommandSender-">sendStats</a></span>(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/command/CommandSender.html?is-external=true"title="class or interface in org.bukkit.command">CommandSender</a> sender)</code> </td>
</tr>
<trid="i24"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#setResearched-me.mrCookieSlime.Slimefun.Objects.Research-boolean-">setResearched</a></span>(<ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research,
boolean unlock)</code>
<divclass="block">This method sets the Player's "researched" status for this Research.</div>
<pre>public <ahref="../../../../io/github/thebusybiscuit/slimefun4/api/items/HashedArmorpiece.html"title="class in io.github.thebusybiscuit.slimefun4.api.items">HashedArmorpiece</a>[] getArmor()</pre>
<pre>public void setResearched(<ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research,
boolean unlock)</pre>
<divclass="block">This method sets the Player's "researched" status for this Research.
Use the boolean to unlock or lock the Research</div>
<pre>public boolean hasUnlocked(<ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research)</pre>
<divclass="block">This method returns whether the Player has unlocked the given Research</div>
<dd><code>research</code> - The Research that is being queried</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Whether this Research has been unlocked</dd>
</dl>
</li>
</ul>
<aname="getResearches--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getResearches</h4>
<pre>public java.util.Set<<ahref="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html"title="class in me.mrCookieSlime.Slimefun.Objects">Research</a>> getResearches()</pre>
<divclass="block">This Method will return all Researches that this Player has unlocked</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>A Hashset<Research> of all Researches this Player has unlocked</dd>
<divclass="block">Call this method if the Player has left.
The profile can then be removed from RAM.</div>
</li>
</ul>
<aname="markDirty--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>markDirty</h4>
<pre>public void markDirty()</pre>
<divclass="block">Call this method if this Profile has unsaved changes.</div>
</li>
</ul>
<aname="createBackpack-int-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>createBackpack</h4>
<pre>public <ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a> createBackpack(int size)</pre>
</li>
</ul>
<aname="getBackpack-int-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getBackpack</h4>
<pre>public <ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a> getBackpack(int id)</pre>
<pre>public void sendStats(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/command/CommandSender.html?is-external=true"title="class or interface in org.bukkit.command">CommandSender</a> sender)</pre>
</li>
</ul>
<aname="getPlayer--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPlayer</h4>
<pre>public <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> getPlayer()</pre>
<pre>public static <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a> fromUUID(java.util.UUID uuid)</pre>
<divclass="block">This is now deprecated, use <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#fromUUID-java.util.UUID-java.util.function.Consumer-"><code>fromUUID(UUID, Consumer)</code></a> instead</div>
java.util.function.Consumer<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</pre>
</li>
</ul>
<aname="get-org.bukkit.OfflinePlayer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>get</h4>
<pre>public static <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a> get(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true"title="class or interface in org.bukkit">OfflinePlayer</a> p)</pre>
<divclass="block">This is now deprecated, use <ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-java.util.function.Consumer-"><code>get(OfflinePlayer, Consumer)</code></a> instead</div>
<pre>public static boolean get(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true"title="class or interface in org.bukkit">OfflinePlayer</a> p,
java.util.function.Consumer<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</pre>
<divclass="block">Get the PlayerProfile for a player asynchronously.</div>
<pre>public static java.util.Optional<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> find(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true"title="class or interface in org.bukkit">OfflinePlayer</a> p)</pre>
</li>
</ul>
<aname="iterator--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>iterator</h4>
<pre>public static java.util.Iterator<<ahref="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html"title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> iterator()</pre>
<pre>public static <ahref="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html"title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a> getBackpack(<ahref="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemStack.html?is-external=true"title="class or interface in org.bukkit.inventory">ItemStack</a> item)</pre>
<li><ahref="../../../../me/mrCookieSlime/Slimefun/api/GuideHandler.html"title="interface in me.mrCookieSlime.Slimefun.api"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../me/mrCookieSlime/Slimefun/api/Slimefun.html"title="class in me.mrCookieSlime.Slimefun.api"><spanclass="typeNameLink">Next Class</span></a></li>