mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-29 04:27:53 +01:00
333 lines
16 KiB
HTML
333 lines
16 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (16) -->
|
|
<title>BooleanProvider (Plan 5.4-SNAPSHOT API)</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="description" content="declaration: package: com.djrapitops.plan.extension.annotation, annotation type: BooleanProvider">
|
|
<meta name="generator" content="javadoc/ClassWriterImpl">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
|
|
<script type="text/javascript" src="../../../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../../../script-dir/jquery-3.5.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body class="class-declaration-page">
|
|
<script type="text/javascript">var pathtoroot = "../../../../../";
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<div class="flex-box">
|
|
<header role="banner" class="flex-header">
|
|
<nav role="navigation">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="top-nav" id="navbar.top">
|
|
<div class="skip-nav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<ul id="navbar.top.firstrow" class="nav-list" title="Navigation">
|
|
<li><a href="../../../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="nav-bar-cell1-rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="sub-nav">
|
|
<div>
|
|
<ul class="sub-nav-list">
|
|
<li>Summary: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#annotation.interface.required.element.summary">Required</a> | </li>
|
|
<li><a href="#annotation.interface.optional.element.summary">Optional</a></li>
|
|
</ul>
|
|
<ul class="sub-nav-list">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#annotation.interface.element.detail">Element</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="nav-list-search"><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<span class="skip-nav" id="skip.navbar.top">
|
|
<!-- -->
|
|
</span></nav>
|
|
</header>
|
|
<div class="flex-content">
|
|
<main role="main">
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">com.djrapitops.plan.extension.annotation</a></div>
|
|
<h1 title="Annotation Interface BooleanProvider" class="title">Annotation Interface BooleanProvider</h1>
|
|
</div>
|
|
<section class="description">
|
|
<hr>
|
|
<div class="type-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/annotation/Retention.html" title="class or interface in java.lang.annotation" class="external-link">@Retention</a>(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/annotation/RetentionPolicy.html#RUNTIME" title="class or interface in java.lang.annotation" class="external-link">RUNTIME</a>)
|
|
<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/annotation/Target.html" title="class or interface in java.lang.annotation" class="external-link">@Target</a>(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/annotation/ElementType.html#METHOD" title="class or interface in java.lang.annotation" class="external-link">METHOD</a>)
|
|
</span><span class="modifiers">public @interface </span><span class="element-name type-name-label">BooleanProvider</span></div>
|
|
<div class="block">Method annotation to provide a boolean value.
|
|
<p>
|
|
Usage: <code>@BooleanProvider boolean method(UUID playerUUID)</code>
|
|
<p>
|
|
The provided boolean can be used as a condition for calls to other Provider
|
|
methods by defining the name of the condition and using <a href="Conditional.html" title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a>
|
|
on the other method with a Provider annotation.
|
|
<p>
|
|
For example:
|
|
<code>@BooleanProvider(condition="example") boolean condition(UUID playerUUID);</code>
|
|
<code>@Conditional("example") @NumberProvider long someValue(UUID playerUUID);</code></div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- =========== ANNOTATION INTERFACE REQUIRED MEMBER SUMMARY =========== -->
|
|
<li>
|
|
<section class="member-summary" id="annotation.interface.required.element.summary">
|
|
<h2>Required Element Summary</h2>
|
|
<div class="caption"><span>Required Elements</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Required Element</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color"><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second even-row-color"><code><span class="member-name-link"><a href="#text()">text</a></span></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Text displayed before the value, limited to 50 characters.</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<!-- =========== ANNOTATION INTERFACE OPTIONAL MEMBER SUMMARY =========== -->
|
|
<li>
|
|
<section class="member-summary" id="annotation.interface.optional.element.summary">
|
|
<h2>Optional Element Summary</h2>
|
|
<div class="caption"><span>Optional Elements</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Optional Element</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color"><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second even-row-color"><code><span class="member-name-link"><a href="#conditionName()">conditionName</a></span></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Name of the <a href="Conditional.html" title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a> condition limited to 50 characters.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second odd-row-color"><code><span class="member-name-link"><a href="#description()">description</a></span></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Text displayed when hovering over the value, limited to 150 characters.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>boolean</code></div>
|
|
<div class="col-second even-row-color"><code><span class="member-name-link"><a href="#hidden()">hidden</a></span></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Should the result of this method be hidden from the user.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code><a href="../icon/Color.html" title="enum class in com.djrapitops.plan.extension.icon">Color</a></code></div>
|
|
<div class="col-second odd-row-color"><code><span class="member-name-link"><a href="#iconColor()">iconColor</a></span></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Color preference of the plugin.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code><a href="../icon/Family.html" title="enum class in com.djrapitops.plan.extension.icon">Family</a></code></div>
|
|
<div class="col-second even-row-color"><code><span class="member-name-link"><a href="#iconFamily()">iconFamily</a></span></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Family of Font Awesome icon.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
|
<div class="col-second odd-row-color"><code><span class="member-name-link"><a href="#iconName()">iconName</a></span></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Name of Font Awesome icon.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>int</code></div>
|
|
<div class="col-second even-row-color"><code><span class="member-name-link"><a href="#priority()">priority</a></span></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Display-priority of the value, highest value is placed top most.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>boolean</code></div>
|
|
<div class="col-second odd-row-color"><code><span class="member-name-link"><a href="#showInPlayerTable()">showInPlayerTable</a></span></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">When the parameter is set to <code>true</code> the value from this Provider is shown on a table alongside players.</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="details" id="annotation.interface.element.detail">
|
|
<ul class="details-list">
|
|
<!-- ============ ANNOTATION INTERFACE MEMBER DETAIL =========== -->
|
|
<li>
|
|
<section class="member-details">
|
|
<h2>Element Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="text()">
|
|
<h3>text</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">text</span></div>
|
|
<div class="block">Text displayed before the value, limited to 50 characters.
|
|
<p>
|
|
Should inform the user what the value represents, for example
|
|
"Banned", "Has Island"</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>String of max 50 characters, remainder will be clipped.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
<!-- ============ ANNOTATION INTERFACE MEMBER DETAIL =========== -->
|
|
<li>
|
|
<section class="member-details">
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="priority()">
|
|
<h3>priority</h3>
|
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">priority</span></div>
|
|
<div class="block">Display-priority of the value, highest value is placed top most.
|
|
<p>
|
|
Two values with same priority may appear in a random order.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>Priority between 0 and <code>Integer.MAX_VALUE</code>.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>0</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="description()">
|
|
<h3>description</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">description</span></div>
|
|
<div class="block">Text displayed when hovering over the value, limited to 150 characters.
|
|
<p>
|
|
Should be used to clarify what the value is if not self evident, for example
|
|
text: "Boat", description: "Whether or not the player is on a boat."</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>String of max 150 characters, remainder will be clipped.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>""</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="conditionName()">
|
|
<h3>conditionName</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">conditionName</span></div>
|
|
<div class="block">Name of the <a href="Conditional.html" title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a> condition limited to 50 characters.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>Case sensitive string of max 50 characters.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>""</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="hidden()">
|
|
<h3>hidden</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hidden</span></div>
|
|
<div class="block">Should the result of this method be hidden from the user.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>true if the value should not be displayed on the page.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>false</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="iconName()">
|
|
<h3>iconName</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">iconName</span></div>
|
|
<div class="block">Name of Font Awesome icon.
|
|
<p>
|
|
See https://fontawesome.com/icons (select 'free')) for icons and their <a href="../icon/Family.html" title="enum class in com.djrapitops.plan.extension.icon"><code>Family</code></a>.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>Name of the icon, if name is not valid no icon is shown.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>"question"</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="iconFamily()">
|
|
<h3>iconFamily</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="../icon/Family.html" title="enum class in com.djrapitops.plan.extension.icon">Family</a></span> <span class="element-name">iconFamily</span></div>
|
|
<div class="block">Family of Font Awesome icon.
|
|
<p>
|
|
See https://fontawesome.com/icons (select 'free')) for icons and their <a href="../icon/Family.html" title="enum class in com.djrapitops.plan.extension.icon"><code>Family</code></a>.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>Family that matches an icon, if there is no icon for this family no icon is shown.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>SOLID</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="iconColor()">
|
|
<h3>iconColor</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="../icon/Color.html" title="enum class in com.djrapitops.plan.extension.icon">Color</a></span> <span class="element-name">iconColor</span></div>
|
|
<div class="block">Color preference of the plugin.
|
|
<p>
|
|
This color will be set as the default color to use for plugin's elements.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>Preferred color. If none are specified defaults are used.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>NONE</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="showInPlayerTable()">
|
|
<h3>showInPlayerTable</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">showInPlayerTable</span></div>
|
|
<div class="block">When the parameter is set to <code>true</code> the value from this Provider is shown on a table alongside players.
|
|
<p>
|
|
If <a href="#hidden()"><code>hidden()</code></a> is <code>true</code> then this value will not be shown in the table regardless of the value of this parameter.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>false by default.</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>Default:</dt>
|
|
<dd>false</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|