mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
562 lines
31 KiB
HTML
562 lines
31 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 Mon Mar 16 19:05:16 CET 2020 -->
|
|
<title>Research</title>
|
|
<meta name="date" content="2020-03-16">
|
|
<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="Research";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":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/Research.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/Objects/LockedCategory.html" title="class in me.mrCookieSlime.Slimefun.Objects"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../me/mrCookieSlime/Slimefun/Objects/SeasonalCategory.html" title="class in me.mrCookieSlime.Slimefun.Objects"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?me/mrCookieSlime/Slimefun/Objects/Research.html" target="_top">Frames</a></li>
|
|
<li><a href="Research.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><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </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.Objects</div>
|
|
<h2 title="Class Research" class="title">Class Research</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>me.mrCookieSlime.Slimefun.Objects.Research</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true" title="class or interface in org.bukkit">Keyed</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="typeNameLabel">Research</span>
|
|
extends java.lang.Object
|
|
implements <a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true" title="class or interface in org.bukkit">Keyed</a></pre>
|
|
<div class="block">Statically handles researches. Represents a research, which is bound to one
|
|
<a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem"><code>SlimefunItem</code></a> or more and require XP levels to unlock this/these item(s).</div>
|
|
<dl>
|
|
<dt><span class="simpleTagLabel">Author:</span></dt>
|
|
<dd>TheBusyBiscuit</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../io/github/thebusybiscuit/slimefun4/implementation/setup/ResearchSetup.html" title="class in io.github.thebusybiscuit.slimefun4.implementation.setup"><code>ResearchSetup</code></a>,
|
|
<a href="../../../../io/github/thebusybiscuit/slimefun4/api/events/ResearchUnlockEvent.html" title="class in io.github.thebusybiscuit.slimefun4.api.events"><code>ResearchUnlockEvent</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#Research-org.bukkit.NamespacedKey-int-java.lang.String-int-">Research</a></span>(<a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true" title="class or interface in org.bukkit">NamespacedKey</a> key,
|
|
int id,
|
|
java.lang.String name,
|
|
int defaultCost)</code>
|
|
<div class="block">The constructor for a <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== 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>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#addItems-me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem...-">addItems</a></span>(<a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem">SlimefunItem</a>... items)</code>
|
|
<div class="block">Bind the specified Slimefun items to this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#canUnlock-org.bukkit.entity.Player-">canUnlock</a></span>(<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> p)</code>
|
|
<div class="block">Checks if the <a href="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> can unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>java.util.List<<a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem">SlimefunItem</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#getAffectedItems--">getAffectedItems</a></span>()</code>
|
|
<div class="block">Lists every <a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem"><code>SlimefunItem</code></a> that is bound to this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>static <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/Objects/Research.html#getByID-int-">getByID</a></span>(int id)</code>
|
|
<div class="block">Attempts to get a <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> with the given ID.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#getCost--">getCost</a></span>()</code>
|
|
<div class="block">Gets the cost in XP levels to unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#getID--">getID</a></span>()</code>
|
|
<div class="block">Gets the ID of this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true" title="class or interface in org.bukkit">NamespacedKey</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#getKey--">getKey</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#getName-org.bukkit.entity.Player-">getName</a></span>(<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> p)</code>
|
|
<div class="block">This method gives you a localized name for this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#isEnabled--">isEnabled</a></span>()</code>
|
|
<div class="block">This method returns whether this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> is enabled.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#register--">register</a></span>()</code>
|
|
<div class="block">Registers this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#setCost-int-">setCost</a></span>(int cost)</code>
|
|
<div class="block">Sets the cost in XP levels to unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#toString--">toString</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#unlock-org.bukkit.entity.Player-boolean-">unlock</a></span>(<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> p,
|
|
boolean instant)</code>
|
|
<div class="block">Unlocks this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> for the specified <a href="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>
|
|
</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">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="Research-org.bukkit.NamespacedKey-int-java.lang.String-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Research</h4>
|
|
<pre>public Research(<a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true" title="class or interface in org.bukkit">NamespacedKey</a> key,
|
|
int id,
|
|
java.lang.String name,
|
|
int defaultCost)</pre>
|
|
<div class="block">The constructor for a <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.
|
|
|
|
Create a new research, then bind this research to the Slimefun items you want by calling
|
|
<a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#addItems-me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem...-"><code>addItems(SlimefunItem...)</code></a>. Once you're finished, call <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html#register--"><code>register()</code></a>
|
|
to register it.
|
|
|
|
To speed up, directly setup the research by calling
|
|
<a href="../../../../me/mrCookieSlime/Slimefun/api/Slimefun.html#registerResearch-me.mrCookieSlime.Slimefun.Objects.Research-org.bukkit.inventory.ItemStack...-"><code>Slimefun.registerResearch(Research, org.bukkit.inventory.ItemStack...)</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>key</code> - A unique identifier for this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
<dd><code>id</code> - old way of identifying researches</dd>
|
|
<dd><code>name</code> - The displayed name of this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
<dd><code>defaultCost</code> - The Cost in XP levels to unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="getKey--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getKey</h4>
|
|
<pre>public <a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true" title="class or interface in org.bukkit">NamespacedKey</a> getKey()</pre>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="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><a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Keyed.html?is-external=true" title="class or interface in org.bukkit">Keyed</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="isEnabled--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isEnabled</h4>
|
|
<pre>public boolean isEnabled()</pre>
|
|
<div class="block">This method returns whether this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> is enabled.
|
|
<code>false</code> can mean that this particular <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> was disabled or that
|
|
researches alltogether have been disabled.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Whether this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> is enabled or not</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getID--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getID</h4>
|
|
<pre>public int getID()</pre>
|
|
<div class="block">Gets the ID of this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.
|
|
This is the old way of identifying Researches, use a <a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true" title="class or interface in org.bukkit"><code>NamespacedKey</code></a> in the future.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The ID of this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getName-org.bukkit.entity.Player-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getName</h4>
|
|
<pre>public java.lang.String getName(<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> p)</pre>
|
|
<div class="block">This method gives you a localized name for this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.
|
|
The name is automatically taken from the currently selected <a href="../../../../io/github/thebusybiscuit/slimefun4/core/services/localization/Language.html" title="class in io.github.thebusybiscuit.slimefun4.core.services.localization"><code>Language</code></a> of
|
|
the specified <a href="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>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>p</code> - The <a href="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 translate this name for.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The localized Name of this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getCost--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCost</h4>
|
|
<pre>public int getCost()</pre>
|
|
<div class="block">Gets the cost in XP levels to unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The cost in XP levels for this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setCost-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setCost</h4>
|
|
<pre>public void setCost(int cost)</pre>
|
|
<div class="block">Sets the cost in XP levels to unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cost</code> - The cost in XP levels</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addItems-me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem...-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addItems</h4>
|
|
<pre>public void addItems(<a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem">SlimefunItem</a>... items)</pre>
|
|
<div class="block">Bind the specified Slimefun items to this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>items</code> - Instances of <a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem"><code>SlimefunItem</code></a> to bind to this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getAffectedItems--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAffectedItems</h4>
|
|
<pre>public java.util.List<<a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem">SlimefunItem</a>> getAffectedItems()</pre>
|
|
<div class="block">Lists every <a href="../../../../me/mrCookieSlime/Slimefun/Objects/SlimefunItem/SlimefunItem.html" title="class in me.mrCookieSlime.Slimefun.Objects.SlimefunItem"><code>SlimefunItem</code></a> that is bound to this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The Slimefun items bound to this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="canUnlock-org.bukkit.entity.Player-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>canUnlock</h4>
|
|
<pre>public boolean canUnlock(<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> p)</pre>
|
|
<div class="block">Checks if the <a href="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> can unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>p</code> - The <a href="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</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Whether that <a href="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> can unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="unlock-org.bukkit.entity.Player-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unlock</h4>
|
|
<pre>public void unlock(<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> p,
|
|
boolean instant)</pre>
|
|
<div class="block">Unlocks this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> for the specified <a href="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>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>p</code> - The <a href="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> for which to unlock this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a></dd>
|
|
<dd><code>instant</code> - Whether to unlock the research instantly</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="register--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>register</h4>
|
|
<pre>public void register()</pre>
|
|
<div class="block">Registers this <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a>.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getByID-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getByID</h4>
|
|
<pre>public static <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects">Research</a> getByID(int id)</pre>
|
|
<div class="block">Attempts to get a <a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> with the given ID.
|
|
|
|
We will use <a href="https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/NamespacedKey.html?is-external=true" title="class or interface in org.bukkit"><code>NamespacedKey</code></a> for this in the future.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - ID of the research to get</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd><a href="../../../../me/mrCookieSlime/Slimefun/Objects/Research.html" title="class in me.mrCookieSlime.Slimefun.Objects"><code>Research</code></a> if found, or null</dd>
|
|
</dl>
|
|
</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/Research.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/Objects/LockedCategory.html" title="class in me.mrCookieSlime.Slimefun.Objects"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../me/mrCookieSlime/Slimefun/Objects/SeasonalCategory.html" title="class in me.mrCookieSlime.Slimefun.Objects"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../index.html?me/mrCookieSlime/Slimefun/Objects/Research.html" target="_top">Frames</a></li>
|
|
<li><a href="Research.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><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|