<li><ahref="../../../../com/djrapitops/plan/extension/CallEvents.html"title="enum in com.djrapitops.plan.extension"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../com/djrapitops/plan/extension/ElementOrder.html"title="enum in com.djrapitops.plan.extension"><spanclass="typeNameLink">Next Class</span></a></li>
<divclass="block">Interface to implement data extensions with.
<p>
The class implementing this interface should be annotated with <ahref="../../../../com/djrapitops/plan/extension/annotation/PluginInfo.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>PluginInfo</code></a>.
If the extension is given to Plan API without the annotation it will be rejected.
<hr>
<p>
Public methods in the class should be annotated with appropriate Provider annotations.
Provider annotations:
<ahref="../../../../com/djrapitops/plan/extension/annotation/BooleanProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>BooleanProvider</code></a> for <code>boolean</code> values and conditions for <ahref="../../../../com/djrapitops/plan/extension/annotation/Conditional.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a>.
<ahref="../../../../com/djrapitops/plan/extension/annotation/NumberProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>NumberProvider</code></a> for <code>long</code> values. (Use this for integers by casting to long) Has option for formatting.
<ahref="../../../../com/djrapitops/plan/extension/annotation/DoubleProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>DoubleProvider</code></a> for <code>double</code> values.
<ahref="../../../../com/djrapitops/plan/extension/annotation/PercentageProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>PercentageProvider</code></a> for <code>double</code> values that represent a percentage.
<ahref="../../../../com/djrapitops/plan/extension/annotation/StringProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>StringProvider</code></a> for <code>String</code> values.
<hr>
<p>
Methods can have one of the following as method parameters:
<code>UUID playerUUID</code> - UUID of the player the data is about
<code>String playerName</code> - Name of the player the data is about
<ahref="../../../../com/djrapitops/plan/extension/Group.html"title="interface in com.djrapitops.plan.extension"><code>group</code></a> - Provided group the data is about (In case a group needs additional information)
nothing - The data is interpreted to be about the server.
<hr>
<p>
The name of the method will be used as an identifier in the database, so that a single provider does not duplicate entries.
Only first 50 characters of the method name are stored.
If you need to change a method name add a class annotation with the old method name: <ahref="../../../../com/djrapitops/plan/extension/annotation/InvalidateMethod.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>InvalidateMethod</code></a>
<p>
Some additional annotations are available for controlling appearance of the results:
<ahref="../../../../com/djrapitops/plan/extension/annotation/Conditional.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a> A <code>boolean</code> returned by <ahref="../../../../com/djrapitops/plan/extension/annotation/BooleanProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>BooleanProvider</code></a> has to be <code>true</code> for this method to be called.
<ahref="../../../../com/djrapitops/plan/extension/annotation/Tab.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>Tab</code></a> The value of this provider should be placed on a tab with a specific name
<ahref="../../../../com/djrapitops/plan/extension/annotation/TabInfo.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>TabInfo</code></a> Optional Structure information about a tab
<ahref="../../../../com/djrapitops/plan/extension/annotation/TabOrder.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>TabOrder</code></a> Optional information about preferred tab
<hr>
<p>
Method calls are asynchronous. You can control when the calls are made via <ahref="../../../../com/djrapitops/plan/extension/DataExtension.html#callExtensionMethodsOn--"><code>callExtensionMethodsOn()</code></a> and <ahref="../../../../com/djrapitops/plan/extension/Caller.html"title="interface in com.djrapitops.plan.extension"><code>Caller</code></a>.
<p>
You can check against implementation violations by using <ahref="../../../../com/djrapitops/plan/extension/extractor/ExtensionExtractor.html#validateAnnotations--"><code>ExtensionExtractor.validateAnnotations()</code></a> in your Unit Tests.
<p>
Implementation violations:
- No <ahref="../../../../com/djrapitops/plan/extension/annotation/PluginInfo.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>PluginInfo</code></a> class annotation
- Class contains no public methods with Provider annotations
- Class contains private method with Provider annotation
- Non-primitive return type when primitive is required (eg. Boolean instead of boolean)
- Method doesn't have correct parameters (see above)
- <ahref="../../../../com/djrapitops/plan/extension/annotation/BooleanProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>BooleanProvider</code></a> is annotated with a <ahref="../../../../com/djrapitops/plan/extension/annotation/Conditional.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a> that requires same condition the provider provides.
- <ahref="../../../../com/djrapitops/plan/extension/annotation/Conditional.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>Conditional</code></a> without a <ahref="../../../../com/djrapitops/plan/extension/annotation/BooleanProvider.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>BooleanProvider</code></a> that provides value for the condition
- Annotation variable is over 50 characters (Or 150 if description)
- Method name is over 50 characters (Used as an identifier for storage)</div>
<dl>
<dt><spanclass="seeLabel">See Also:</span></dt>
<dd><ahref="../../../../com/djrapitops/plan/extension/annotation/PluginInfo.html"title="annotation in com.djrapitops.plan.extension.annotation"><code>Required Annotation</code></a>,
<ahref="../../../../com/djrapitops/plan/extension/CallEvents.html"title="enum in com.djrapitops.plan.extension"><code>for method call event types.</code></a></dd>
</dl>
</li>
</ul>
</div>
<divclass="summary">
<ulclass="blockList">
<liclass="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code>default <ahref="../../../../com/djrapitops/plan/extension/CallEvents.html"title="enum in com.djrapitops.plan.extension">CallEvents</a>[]</code></td>
<divclass="block">Determines when DataExtension methods are called automatically by Plan.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<divclass="details">
<ulclass="blockList">
<liclass="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="callExtensionMethodsOn--">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>callExtensionMethodsOn</h4>
<pre>default <ahref="../../../../com/djrapitops/plan/extension/CallEvents.html"title="enum in com.djrapitops.plan.extension">CallEvents</a>[] callExtensionMethodsOn()</pre>
<divclass="block">Determines when DataExtension methods are called automatically by Plan.
<p>
Override this method to determine more suitable call times for your plugin.
You can also use <ahref="../../../../com/djrapitops/plan/extension/Caller.html"title="interface in com.djrapitops.plan.extension"><code>Caller</code></a> to update manually.
<p>
If an empty array is supplied the DataExtension methods are not called by Plan automatically.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Event types that will trigger method calls to the DataExtension.</dd>
<dt><spanclass="seeLabel">See Also:</span></dt>
<dd><ahref="../../../../com/djrapitops/plan/extension/CallEvents.html"title="enum in com.djrapitops.plan.extension"><code>for details when the methods are called.</code></a></dd>
<li><ahref="../../../../com/djrapitops/plan/extension/CallEvents.html"title="enum in com.djrapitops.plan.extension"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../com/djrapitops/plan/extension/ElementOrder.html"title="enum in com.djrapitops.plan.extension"><spanclass="typeNameLink">Next Class</span></a></li>