mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
656 lines
30 KiB
HTML
656 lines
30 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="de">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_111) on Fri Mar 06 01:55:52 CET 2020 -->
|
|
<title>PlayerProfile</title>
|
|
<meta name="date" content="2020-03-06">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
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>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/PlayerProfile.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../me/mrCookieSlime/Slimefun/api/GuideHandler.html" title="interface in me.mrCookieSlime.Slimefun.api"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../me/mrCookieSlime/Slimefun/api/Slimefun.html" title="class in me.mrCookieSlime.Slimefun.api"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?me/mrCookieSlime/Slimefun/api/PlayerProfile.html" target="_top">Frames</a></li>
|
|
<li><a href="PlayerProfile.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">me.mrCookieSlime.Slimefun.api</div>
|
|
<h2 title="Class PlayerProfile" class="title">Class PlayerProfile</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>me.mrCookieSlime.Slimefun.api.PlayerProfile</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public final class <span class="typeNameLabel">PlayerProfile</span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">A class that can store a Player's Research Profile for caching</div>
|
|
<dl>
|
|
<dt><span class="simpleTagLabel">Author:</span></dt>
|
|
<dd>TheBusyBiscuit</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html" title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#createBackpack-int-">createBackpack</a></span>(int size)</code> </td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>static java.util.Optional<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#find-org.bukkit.OfflinePlayer-">find</a></span>(<a href="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>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#fromUUID-java.util.UUID-">fromUUID</a></span>(java.util.UUID uuid)</code>
|
|
<div class="block">This is now deprecated, use <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#fromUUID-java.util.UUID-java.util.function.Consumer-"><code>fromUUID(UUID, Consumer)</code></a> instead</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>static boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#fromUUID-java.util.UUID-java.util.function.Consumer-">fromUUID</a></span>(java.util.UUID uuid,
|
|
java.util.function.Consumer<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</code> </td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-">get</a></span>(<a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true" title="class or interface in org.bukkit">OfflinePlayer</a> p)</code>
|
|
<div class="block">This is now deprecated, use <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-java.util.function.Consumer-"><code>get(OfflinePlayer, Consumer)</code></a> instead</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>static boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-java.util.function.Consumer-">get</a></span>(<a href="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<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</code>
|
|
<div class="block">Get the PlayerProfile for a player asynchronously.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../io/github/thebusybiscuit/slimefun4/api/items/HashedArmorpiece.html" title="class in io.github.thebusybiscuit.slimefun4.api.items">HashedArmorpiece</a>[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getArmor--">getArmor</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html" title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getBackpack-int-">getBackpack</a></span>(int id)</code> </td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html" title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getBackpack-org.bukkit.inventory.ItemStack-">getBackpack</a></span>(<a href="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>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>io.github.thebusybiscuit.cscorelib2.config.Config</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getConfig--">getConfig</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>java.util.LinkedList<java.lang.Object></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getGuideHistory--">getGuideHistory</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getPlayer--">getPlayer</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>java.util.Set<<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getResearches--">getResearches</a></span>()</code>
|
|
<div class="block">This Method will return all Researches that this Player has unlocked</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getTitle--">getTitle</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>java.util.UUID</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#getUUID--">getUUID</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#hasUnlocked-me.mrCookieSlime.Slimefun.Objects.Research-">hasUnlocked</a></span>(<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research)</code>
|
|
<div class="block">This method returns whether the Player has unlocked the given Research</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#isDirty--">isDirty</a></span>()</code>
|
|
<div class="block">This method returns whether the Profile has unsaved changes</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>static boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#isLoaded-java.util.UUID-">isLoaded</a></span>(java.util.UUID uuid)</code> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#isMarkedForDeletion--">isMarkedForDeletion</a></span>()</code>
|
|
<div class="block">This method returns whether the Player has logged off.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>static java.util.Iterator<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#iterator--">iterator</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#markDirty--">markDirty</a></span>()</code>
|
|
<div class="block">Call this method if this Profile has unsaved changes.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#markForDeletion--">markForDeletion</a></span>()</code>
|
|
<div class="block">Call this method if the Player has left.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#save--">save</a></span>()</code>
|
|
<div class="block">This method will save the Player's Researches and Backpacks to the hard drive</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#sendStats-org.bukkit.command.CommandSender-">sendStats</a></span>(<a href="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>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#setResearched-me.mrCookieSlime.Slimefun.Objects.Research-boolean-">setResearched</a></span>(<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research,
|
|
boolean unlock)</code>
|
|
<div class="block">This method sets the Player's "researched" status for this Research.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#toString--">toString</a></span>()</code> </td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="getArmor--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getArmor</h4>
|
|
<pre>public <a href="../../../../io/github/thebusybiscuit/slimefun4/api/items/HashedArmorpiece.html" title="class in io.github.thebusybiscuit.slimefun4.api.items">HashedArmorpiece</a>[] getArmor()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getConfig--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getConfig</h4>
|
|
<pre>public io.github.thebusybiscuit.cscorelib2.config.Config getConfig()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getUUID--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getUUID</h4>
|
|
<pre>public java.util.UUID getUUID()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isMarkedForDeletion--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isMarkedForDeletion</h4>
|
|
<pre>public boolean isMarkedForDeletion()</pre>
|
|
<div class="block">This method returns whether the Player has logged off.
|
|
If this is true, then the Profile can be removed from RAM.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Whether the Profile is marked for deletion</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="isDirty--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isDirty</h4>
|
|
<pre>public boolean isDirty()</pre>
|
|
<div class="block">This method returns whether the Profile has unsaved changes</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Whether there are unsaved changes</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="save--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>save</h4>
|
|
<pre>public void save()</pre>
|
|
<div class="block">This method will save the Player's Researches and Backpacks to the hard drive</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setResearched-me.mrCookieSlime.Slimefun.Objects.Research-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setResearched</h4>
|
|
<pre>public void setResearched(<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research,
|
|
boolean unlock)</pre>
|
|
<div class="block">This method sets the Player's "researched" status for this Research.
|
|
Use the boolean to unlock or lock the Research</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>research</code> - The Research that should be unlocked or locked</dd>
|
|
<dd><code>unlock</code> - Whether the Research should be unlocked or locked</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hasUnlocked-me.mrCookieSlime.Slimefun.Objects.Research-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasUnlocked</h4>
|
|
<pre>public boolean hasUnlocked(<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> research)</pre>
|
|
<div class="block">This method returns whether the Player has unlocked the given Research</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>research</code> - The Research that is being queried</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Whether this Research has been unlocked</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getResearches--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getResearches</h4>
|
|
<pre>public java.util.Set<<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a>> getResearches()</pre>
|
|
<div class="block">This Method will return all Researches that this Player has unlocked</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>A Hashset<Research> of all Researches this Player has unlocked</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="markForDeletion--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>markForDeletion</h4>
|
|
<pre>public void markForDeletion()</pre>
|
|
<div class="block">Call this method if the Player has left.
|
|
The profile can then be removed from RAM.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="markDirty--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>markDirty</h4>
|
|
<pre>public void markDirty()</pre>
|
|
<div class="block">Call this method if this Profile has unsaved changes.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="createBackpack-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createBackpack</h4>
|
|
<pre>public <a href="../../../../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>
|
|
<a name="getBackpack-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBackpack</h4>
|
|
<pre>public <a href="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html" title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a> getBackpack(int id)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getTitle--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTitle</h4>
|
|
<pre>public java.lang.String getTitle()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="sendStats-org.bukkit.command.CommandSender-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>sendStats</h4>
|
|
<pre>public void sendStats(<a href="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>
|
|
<a name="getPlayer--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPlayer</h4>
|
|
<pre>public <a href="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>
|
|
</li>
|
|
</ul>
|
|
<a name="getGuideHistory--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGuideHistory</h4>
|
|
<pre>public java.util.LinkedList<java.lang.Object> getGuideHistory()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="fromUUID-java.util.UUID-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fromUUID</h4>
|
|
<pre>public static <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a> fromUUID(java.util.UUID uuid)</pre>
|
|
<div class="block">This is now deprecated, use <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#fromUUID-java.util.UUID-java.util.function.Consumer-"><code>fromUUID(UUID, Consumer)</code></a> instead</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>uuid</code> - The UUID of the profile you are trying to retrieve.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The PlayerProfile of this player</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="fromUUID-java.util.UUID-java.util.function.Consumer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fromUUID</h4>
|
|
<pre>public static boolean fromUUID(java.util.UUID uuid,
|
|
java.util.function.Consumer<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="get-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>get</h4>
|
|
<pre>public static <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a> get(<a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/OfflinePlayer.html?is-external=true" title="class or interface in org.bukkit">OfflinePlayer</a> p)</pre>
|
|
<div class="block">This is now deprecated, use <a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html#get-org.bukkit.OfflinePlayer-java.util.function.Consumer-"><code>get(OfflinePlayer, Consumer)</code></a> instead</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>p</code> - The player's profile you wish to retrieve</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The PlayerProfile of this player</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="get-org.bukkit.OfflinePlayer-java.util.function.Consumer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>get</h4>
|
|
<pre>public static boolean get(<a href="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<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> callback)</pre>
|
|
<div class="block">Get the PlayerProfile for a player asynchronously.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>p</code> - The player who's profile to retrieve</dd>
|
|
<dd><code>callback</code> - The callback with the PlayerProfile</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>If the player was cached or not.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="isLoaded-java.util.UUID-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isLoaded</h4>
|
|
<pre>public static boolean isLoaded(java.util.UUID uuid)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="find-org.bukkit.OfflinePlayer-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>find</h4>
|
|
<pre>public static java.util.Optional<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> find(<a href="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>
|
|
<a name="iterator--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>iterator</h4>
|
|
<pre>public static java.util.Iterator<<a href="../../../../me/mrCookieSlime/Slimefun/api/PlayerProfile.html" title="class in me.mrCookieSlime.Slimefun.api">PlayerProfile</a>> iterator()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getBackpack-org.bukkit.inventory.ItemStack-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBackpack</h4>
|
|
<pre>public static <a href="../../../../io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.html" title="class in io.github.thebusybiscuit.slimefun4.api.player">PlayerBackpack</a> getBackpack(<a href="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>
|
|
</ul>
|
|
<a name="toString--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>toString</h4>
|
|
<pre>public java.lang.String toString()</pre>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/PlayerProfile.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../me/mrCookieSlime/Slimefun/api/GuideHandler.html" title="interface in me.mrCookieSlime.Slimefun.api"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../me/mrCookieSlime/Slimefun/api/Slimefun.html" title="class in me.mrCookieSlime.Slimefun.api"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?me/mrCookieSlime/Slimefun/api/PlayerProfile.html" target="_top">Frames</a></li>
|
|
<li><a href="PlayerProfile.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|