Swap EventPriority for EventOrder

EventPriority is a fixed enum, where EventOrder is a short value (with predefined settings for ease of use) allowing for more fine tuning on when your events should be run
This commit is contained in:
ME1312 2017-08-09 02:25:56 -04:00
parent 65002c767d
commit 3ac1c8dec3
20 changed files with 504 additions and 479 deletions

Binary file not shown.

Binary file not shown.

View File

@ -23,7 +23,7 @@
<li><a href="net/ME1312/SubServers/Host/Library/Log/ErrorStream.html" title="class in net.ME1312.SubServers.Host.Library.Log" target="classFrame">ErrorStream</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/Event.html" title="class in net.ME1312.SubServers.Host.Library.Event" target="classFrame">Event</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event" target="classFrame">EventHandler</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event" target="classFrame">EventPriority</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event" target="classFrame">EventOrder</a></li>
<li><a href="net/ME1312/SubServers/Host/Executable/Executable.html" title="class in net.ME1312.SubServers.Host.Executable" target="classFrame">Executable</a></li>
<li><a href="net/ME1312/SubServers/Host/ExHost.html" title="class in net.ME1312.SubServers.Host" target="classFrame">ExHost</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/ExtraDataHandler.html" title="interface in net.ME1312.SubServers.Host.Library" target="classFrame"><span class="interfaceName">ExtraDataHandler</span></a></li>

View File

@ -23,7 +23,7 @@
<li><a href="net/ME1312/SubServers/Host/Library/Log/ErrorStream.html" title="class in net.ME1312.SubServers.Host.Library.Log">ErrorStream</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/Event.html" title="class in net.ME1312.SubServers.Host.Library.Event">Event</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event">EventHandler</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></li>
<li><a href="net/ME1312/SubServers/Host/Executable/Executable.html" title="class in net.ME1312.SubServers.Host.Executable">Executable</a></li>
<li><a href="net/ME1312/SubServers/Host/ExHost.html" title="class in net.ME1312.SubServers.Host">ExHost</a></li>
<li><a href="net/ME1312/SubServers/Host/Library/ExtraDataHandler.html" title="interface in net.ME1312.SubServers.Host.Library"><span class="interfaceName">ExtraDataHandler</span></a></li>

View File

@ -70,6 +70,77 @@
<div class="header">
<h1 title="Constant Field Values" class="title">Constant Field Values</h1>
<h2 title="Contents">Contents</h2>
<ul>
<li><a href="#net.ME1312">net.ME1312.*</a></li>
</ul>
</div>
<div class="constantValuesContainer"><a name="net.ME1312">
<!-- -->
</a>
<h2 title="net.ME1312">net.ME1312.*</h2>
<ul class="blockList">
<li class="blockList">
<table class="constantsSummary" border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
<caption><span>net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
<th class="colLast" scope="col">Value</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.EARLY">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#EARLY">EARLY</a></code></td>
<td class="colLast"><code>-10922</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.FIRST">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#FIRST">FIRST</a></code></td>
<td class="colLast"><code>-32768</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.LAST">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LAST">LAST</a></code></td>
<td class="colLast"><code>32767</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.LATE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LATE">LATE</a></code></td>
<td class="colLast"><code>10922</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.NORMAL">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#NORMAL">NORMAL</a></code></td>
<td class="colLast"><code>0</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.VERY_EARLY">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#VERY_EARLY">VERY_EARLY</a></code></td>
<td class="colLast"><code>-21844</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="net.ME1312.SubServers.Host.Library.Event.EventOrder.VERY_LATE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;short</code></td>
<td><code><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#VERY_LATE">VERY_LATE</a></code></td>
<td class="colLast"><code>21844</code></td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">

View File

@ -329,6 +329,8 @@
</a>
<h2 class="title">E</h2>
<dl>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#EARLY">EARLY</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Network/AES.html#encrypt-int-java.lang.String-java.io.InputStream-java.io.OutputStream-">encrypt(int, String, InputStream, OutputStream)</a></span> - Static method in class net.ME1312.SubServers.Host.Network.<a href="net/ME1312/SubServers/Host/Network/AES.html" title="class in net.ME1312.SubServers.Host.Network">AES</a></dt>
<dd>
<div class="block">Encrypts a stream of data.</div>
@ -360,10 +362,10 @@
<div class="block">EventHandler Method Annotation<br>
Methods annotated by this and registered in SubAPI will be run when the event is called</div>
</dd>
<dt><a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventPriority</span></a> - Enum in <a href="net/ME1312/SubServers/Host/Library/Event/package-summary.html">net.ME1312.SubServers.Host.Library.Event</a></dt>
<dt><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventOrder</span></a> - Class in <a href="net/ME1312/SubServers/Host/Library/Event/package-summary.html">net.ME1312.SubServers.Host.Library.Event</a></dt>
<dd>
<div class="block">Event Priority Class<br>
Events will be run Lowest to Highest</div>
<div class="block">Event Order Defaults Class<br>
Events will be run from Short.MIN_VALUE to Short.MAX_VALUE</div>
</dd>
<dt><a href="net/ME1312/SubServers/Host/Executable/Executable.html" title="class in net.ME1312.SubServers.Host.Executable"><span class="typeNameLink">Executable</span></a> - Class in <a href="net/ME1312/SubServers/Host/Executable/package-summary.html">net.ME1312.SubServers.Host.Executable</a></dt>
<dd>
@ -445,6 +447,8 @@
<dd>
<div class="block">Log File Writer Class</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#FIRST">FIRST</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Network/SubDataClient.html#forwardPacket-net.ME1312.SubServers.Host.Network.PacketOut-java.lang.String-">forwardPacket(PacketOut, String)</a></span> - Method in class net.ME1312.SubServers.Host.Network.<a href="net/ME1312/SubServers/Host/Network/SubDataClient.html" title="class in net.ME1312.SubServers.Host.Network">SubDataClient</a></dt>
<dd>
<div class="block">Forward Packet to Server</div>
@ -1289,6 +1293,10 @@
<dl>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/ExHost.html#lang">lang</a></span> - Variable in class net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/ExHost.html" title="class in net.ME1312.SubServers.Host">ExHost</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LAST">LAST</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LATE">LATE</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
<dt><a href="net/ME1312/SubServers/Host/Launch.html" title="class in net.ME1312.SubServers.Host"><span class="typeNameLink">Launch</span></a> - Class in <a href="net/ME1312/SubServers/Host/package-summary.html">net.ME1312.SubServers.Host</a></dt>
<dd>
<div class="block">SubServers.Host Launcher Class</div>
@ -1373,6 +1381,8 @@
<dd>&nbsp;</dd>
<dt><a href="net/ME1312/SubServers/Host/Network/Packet/package-summary.html">net.ME1312.SubServers.Host.Network.Packet</a> - package net.ME1312.SubServers.Host.Network.Packet</dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#NORMAL">NORMAL</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
</dl>
<a name="I:P">
<!-- -->
@ -2162,10 +2172,6 @@
<dd>
<div class="block">Returns the enum constant of this type with the specified name.</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html#valueOf-java.lang.String-">valueOf(String)</a></span> - Static method in enum net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a></dt>
<dd>
<div class="block">Returns the enum constant of this type with the specified name.</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Network/Packet/PacketExUpdateServer.UpdateType.html#valueOf-java.lang.String-">valueOf(String)</a></span> - Static method in enum net.ME1312.SubServers.Host.Network.Packet.<a href="net/ME1312/SubServers/Host/Network/Packet/PacketExUpdateServer.UpdateType.html" title="enum in net.ME1312.SubServers.Host.Network.Packet">PacketExUpdateServer.UpdateType</a></dt>
<dd>
<div class="block">Returns the enum constant of this type with the specified name.</div>
@ -2179,11 +2185,6 @@
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared.</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html#values--">values()</a></span> - Static method in enum net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a></dt>
<dd>
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared.</div>
</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Network/Packet/PacketExUpdateServer.UpdateType.html#values--">values()</a></span> - Static method in enum net.ME1312.SubServers.Host.Network.Packet.<a href="net/ME1312/SubServers/Host/Network/Packet/PacketExUpdateServer.UpdateType.html" title="enum in net.ME1312.SubServers.Host.Network.Packet">PacketExUpdateServer.UpdateType</a></dt>
<dd>
<div class="block">Returns an array containing the constants of this enum type, in
@ -2210,6 +2211,10 @@ the order they are declared.</div>
</dd>
<dt><a href="net/ME1312/SubServers/Host/Library/Version/VersionTokenizer.html" title="class in net.ME1312.SubServers.Host.Library.Version"><span class="typeNameLink">VersionTokenizer</span></a> - Class in <a href="net/ME1312/SubServers/Host/Library/Version/package-summary.html">net.ME1312.SubServers.Host.Library.Version</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#VERY_EARLY">VERY_EARLY</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html#VERY_LATE">VERY_LATE</a></span> - Static variable in class net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></dt>
<dd>&nbsp;</dd>
</dl>
<a name="I:W">
<!-- -->

View File

@ -42,7 +42,7 @@
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Event.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Host/Library/Event/EventHandler.html" target="_top">Frames</a></li>
@ -119,15 +119,15 @@ public @interface <span class="memberNameLabel">EventHandler</span></pre>
<th class="colLast" scope="col">Optional Element and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html#override--">override</a></span></code>
<div class="block">If this Event should be run even if it's been cancelled</div>
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html#order--">order</a></span></code>
<div class="block">Defines when this event should run</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html#priority--">priority</a></span></code>
<div class="block">The Priority of this Event</div>
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html#override--">override</a></span></code>
<div class="block">If this Event should be run even if it's been cancelled</div>
</td>
</tr>
</table>
@ -145,21 +145,23 @@ public @interface <span class="memberNameLabel">EventHandler</span></pre>
<!-- -->
</a>
<h3>Element Detail</h3>
<a name="priority--">
<a name="order--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>priority</h4>
<pre>public abstract&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>&nbsp;priority</pre>
<div class="block">The Priority of this Event</div>
<h4>order</h4>
<pre>public abstract&nbsp;short&nbsp;order</pre>
<div class="block">Defines when this event should run</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Event Priority</dd>
<dd>Event Order</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><code>EventOrder</code></a></dd>
</dl>
<dl>
<dt>Default:</dt>
<dd>net.ME1312.SubServers.Host.Library.Event.EventPriority.NORMAL</dd>
<dd>0</dd>
</dl>
</li>
</ul>
@ -212,7 +214,7 @@ public @interface <span class="memberNameLabel">EventHandler</span></pre>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Event.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Host/Library/Event/EventHandler.html" target="_top">Frames</a></li>

View File

@ -0,0 +1,344 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>EventOrder (SubServers.Host)</title>
<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="EventOrder (SubServers.Host)";
}
}
catch(err) {
}
//-->
</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="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="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Listener.html" title="interface in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Host/Library/Event/EventOrder.html" target="_top">Frames</a></li>
<li><a href="EventOrder.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">net.ME1312.SubServers.Host.Library.Event</div>
<h2 title="Class EventOrder" class="title">Class EventOrder</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>net.ME1312.SubServers.Host.Library.Event.EventOrder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">EventOrder</span>
extends java.lang.Object</pre>
<div class="block">Event Order Defaults Class<br>
Events will be run from Short.MIN_VALUE to Short.MAX_VALUE</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#EARLY">EARLY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#FIRST">FIRST</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LAST">LAST</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#LATE">LATE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#NORMAL">NORMAL</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#VERY_EARLY">VERY_EARLY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html#VERY_LATE">VERY_LATE</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="FIRST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FIRST</h4>
<pre>public static final&nbsp;short FIRST</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.FIRST">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="VERY_EARLY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VERY_EARLY</h4>
<pre>public static final&nbsp;short VERY_EARLY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.VERY_EARLY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="EARLY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EARLY</h4>
<pre>public static final&nbsp;short EARLY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.EARLY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NORMAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORMAL</h4>
<pre>public static final&nbsp;short NORMAL</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.NORMAL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LATE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LATE</h4>
<pre>public static final&nbsp;short LATE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.LATE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="VERY_LATE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VERY_LATE</h4>
<pre>public static final&nbsp;short VERY_LATE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.VERY_LATE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LAST">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LAST</h4>
<pre>public static final&nbsp;short LAST</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#net.ME1312.SubServers.Host.Library.Event.EventOrder.LAST">Constant Field Values</a></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="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="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Listener.html" title="interface in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Host/Library/Event/EventOrder.html" target="_top">Frames</a></li>
<li><a href="EventOrder.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

View File

@ -1,376 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>EventPriority (SubServers.Host)</title>
<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="EventPriority (SubServers.Host)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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="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="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Listener.html" title="interface in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Host/Library/Event/EventPriority.html" target="_top">Frames</a></li>
<li><a href="EventPriority.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#enum.constant.summary">Enum Constants</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#enum.constant.detail">Enum Constants</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</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">net.ME1312.SubServers.Host.Library.Event</div>
<h2 title="Enum EventPriority" class="title">Enum EventPriority</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>java.lang.Enum&lt;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>&gt;</li>
<li>
<ul class="inheritance">
<li>net.ME1312.SubServers.Host.Library.Event.EventPriority</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable, java.lang.Comparable&lt;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public enum <span class="typeNameLabel">EventPriority</span>
extends java.lang.Enum&lt;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>&gt;</pre>
<div class="block">Event Priority Class<br>
Events will be run Lowest to Highest</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="enum.constant.summary">
<!-- -->
</a>
<h3>Enum Constant Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Constant Summary table, listing enum constants, and an explanation">
<caption><span>Enum Constants</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Enum Constant and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#HIGH">HIGH</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#HIGHEST">HIGHEST</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#LOW">LOW</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#LOWEST">LOWEST</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#NORMAL">NORMAL</a></span></code>&nbsp;</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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>static <a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#valueOf-java.lang.String-">valueOf</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Returns the enum constant of this type with the specified name.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html#values--">values</a></span>()</code>
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Enum">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Enum</h3>
<code>compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ ENUM CONSTANT DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="enum.constant.detail">
<!-- -->
</a>
<h3>Enum Constant Detail</h3>
<a name="LOWEST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOWEST</h4>
<pre>public static final&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a> LOWEST</pre>
</li>
</ul>
<a name="LOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOW</h4>
<pre>public static final&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a> LOW</pre>
</li>
</ul>
<a name="NORMAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NORMAL</h4>
<pre>public static final&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a> NORMAL</pre>
</li>
</ul>
<a name="HIGH">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HIGH</h4>
<pre>public static final&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a> HIGH</pre>
</li>
</ul>
<a name="HIGHEST">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HIGHEST</h4>
<pre>public static final&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a> HIGHEST</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="values--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre>public static&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>[]&nbsp;values()</pre>
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
<pre>
for (EventPriority c : EventPriority.values())
&nbsp; System.out.println(c);
</pre></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array containing the constants of this enum type, in the order they are declared</dd>
</dl>
</li>
</ul>
<a name="valueOf-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>valueOf</h4>
<pre>public static&nbsp;<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a>&nbsp;valueOf(java.lang.String&nbsp;name)</pre>
<div class="block">Returns the enum constant of this type with the specified name.
The string must match <i>exactly</i> an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the enum constant with the specified name</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if this enum type has no constant with the specified name</dd>
<dd><code>java.lang.NullPointerException</code> - if the argument is null</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="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="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Listener.html" title="interface in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?net/ME1312/SubServers/Host/Library/Event/EventPriority.html" target="_top">Frames</a></li>
<li><a href="EventPriority.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#enum.constant.summary">Enum Constants</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#enum.constant.detail">Enum Constants</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>

View File

@ -41,7 +41,7 @@
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
@ -120,7 +120,7 @@
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">

View File

@ -18,10 +18,7 @@
<h2 title="Classes">Classes</h2>
<ul title="Classes">
<li><a href="Event.html" title="class in net.ME1312.SubServers.Host.Library.Event" target="classFrame">Event</a></li>
</ul>
<h2 title="Enums">Enums</h2>
<ul title="Enums">
<li><a href="EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event" target="classFrame">EventPriority</a></li>
<li><a href="EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event" target="classFrame">EventOrder</a></li>
</ul>
<h2 title="Annotation Types">Annotation Types</h2>
<ul title="Annotation Types">

View File

@ -109,22 +109,11 @@
<div class="block">SubEvent Layout Class</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation">
<caption><span>Enum Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Enum</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event">EventPriority</a></td>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event">EventOrder</a></td>
<td class="colLast">
<div class="block">Event Priority Class<br>
Events will be run Lowest to Highest</div>
<div class="block">Event Order Defaults Class<br>
Events will be run from Short.MIN_VALUE to Short.MAX_VALUE</div>
</td>
</tr>
</tbody>

View File

@ -80,6 +80,7 @@
<li type="circle">java.lang.Object
<ul>
<li type="circle">net.ME1312.SubServers.Host.Library.Event.<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/Event.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">Event</span></a></li>
<li type="circle">net.ME1312.SubServers.Host.Library.Event.<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventOrder</span></a></li>
</ul>
</li>
</ul>
@ -92,18 +93,6 @@
<ul>
<li type="circle">net.ME1312.SubServers.Host.Library.Event.<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventHandler.html" title="annotation in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventHandler</span></a> (implements java.lang.annotation.Annotation)</li>
</ul>
<h2 title="Enum Hierarchy">Enum Hierarchy</h2>
<ul>
<li type="circle">java.lang.Object
<ul>
<li type="circle">java.lang.Enum&lt;E&gt; (implements java.lang.Comparable&lt;T&gt;, java.io.Serializable)
<ul>
<li type="circle">net.ME1312.SubServers.Host.Library.Event.<a href="../../../../../../net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventPriority</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">

View File

@ -113,6 +113,7 @@
<li type="circle">net.ME1312.SubServers.Host.API.Event.<a href="net/ME1312/SubServers/Host/API/Event/SubStoppedEvent.html" title="class in net.ME1312.SubServers.Host.API.Event"><span class="typeNameLink">SubStoppedEvent</span></a></li>
</ul>
</li>
<li type="circle">net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventOrder.html" title="class in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventOrder</span></a></li>
<li type="circle">net.ME1312.SubServers.Host.Executable.<a href="net/ME1312/SubServers/Host/Executable/Executable.html" title="class in net.ME1312.SubServers.Host.Executable"><span class="typeNameLink">Executable</span></a> (implements java.io.Serializable)</li>
<li type="circle">net.ME1312.SubServers.Host.<a href="net/ME1312/SubServers/Host/ExHost.html" title="class in net.ME1312.SubServers.Host"><span class="typeNameLink">ExHost</span></a></li>
<li type="circle">java.io.File (implements java.lang.Comparable&lt;T&gt;, java.io.Serializable)
@ -231,7 +232,6 @@
<li type="circle">java.lang.Enum&lt;E&gt; (implements java.lang.Comparable&lt;T&gt;, java.io.Serializable)
<ul>
<li type="circle">net.ME1312.SubServers.Host.Executable.<a href="net/ME1312/SubServers/Host/Executable/SubCreator.ServerType.html" title="enum in net.ME1312.SubServers.Host.Executable"><span class="typeNameLink">SubCreator.ServerType</span></a></li>
<li type="circle">net.ME1312.SubServers.Host.Library.Event.<a href="net/ME1312/SubServers/Host/Library/Event/EventPriority.html" title="enum in net.ME1312.SubServers.Host.Library.Event"><span class="typeNameLink">EventPriority</span></a></li>
<li type="circle">net.ME1312.SubServers.Host.Network.<a href="net/ME1312/SubServers/Host/Network/SubDataClient.Encryption.html" title="enum in net.ME1312.SubServers.Host.Network"><span class="typeNameLink">SubDataClient.Encryption</span></a></li>
<li type="circle">net.ME1312.SubServers.Host.Network.Packet.<a href="net/ME1312/SubServers/Host/Network/Packet/PacketExUpdateServer.UpdateType.html" title="enum in net.ME1312.SubServers.Host.Network.Packet"><span class="typeNameLink">PacketExUpdateServer.UpdateType</span></a></li>
</ul>

View File

@ -47,8 +47,8 @@ public final class ExHost {
public YAMLSection lang = null;
public SubDataClient subdata = null;
public final Version version = new Version("2.12d");
public final Version bversion = null;
public final Version version = new Version("2.12e");
public final Version bversion = new Version(1);
public final SubAPI api = new SubAPI(this);
private boolean running;
@ -238,7 +238,7 @@ public final class ExHost {
plugins.remove(name);
}
if (progress == 0 && plugins.size() != 0) {
log.error.println(new IllegalStateException("Couldn't load more plugins but there are " + plugins.size() + " more"));
log.error.println(new IllegalStateException("Couldn't load more plugins yet " + plugins.size() + " remain unloaded"));
break;
}
}

View File

@ -42,14 +42,14 @@ public abstract class Event {
try {
Field f = SubAPI.class.getDeclaredField("listeners");
f.setAccessible(true);
HashMap<EventPriority, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>> listeners = (HashMap<EventPriority, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>>) f.get(getAPI());
TreeMap<Short, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>> listeners = (TreeMap<Short, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>>) f.get(getAPI());
HashMap<SubPluginInfo, List<Method>> map = new LinkedHashMap<SubPluginInfo, List<Method>>();
f.setAccessible(false);
for (EventPriority priority : listeners.keySet()) {
if (!listeners.get(priority).keySet().contains(getClass())) continue;
for (SubPluginInfo plugin : listeners.get(priority).get(getClass()).keySet()) {
for (Object listener : listeners.get(priority).get(getClass()).get(plugin).keySet()) {
for (Method method : listeners.get(priority).get(getClass()).get(plugin).get(listener)) {
for (Short order : listeners.keySet()) {
if (!listeners.get(order).keySet().contains(getClass())) continue;
for (SubPluginInfo plugin : listeners.get(order).get(getClass()).keySet()) {
for (Object listener : listeners.get(order).get(getClass()).get(plugin).keySet()) {
for (Method method : listeners.get(order).get(getClass()).get(plugin).get(listener)) {
List<Method> methods = (map.keySet().contains(plugin))?map.get(plugin):new LinkedList<Method>();
methods.add(method);
map.put(plugin, methods);

View File

@ -17,11 +17,12 @@ import java.lang.annotation.Target;
@Target(ElementType.METHOD)
public @interface EventHandler {
/**
* The Priority of this Event
* Defines when this event should run
*
* @return Event Priority
* @see EventOrder
* @return Event Order
*/
EventPriority priority() default EventPriority.NORMAL;
short order() default EventOrder.NORMAL;
/**
* If this Event should be run even if it's been cancelled

View File

@ -0,0 +1,16 @@
package net.ME1312.SubServers.Host.Library.Event;
/**
* Event Order Defaults Class<br>
* Events will be run from Short.MIN_VALUE to Short.MAX_VALUE
*/
public final class EventOrder {
private EventOrder() {}
public static final short FIRST = Short.MIN_VALUE;
public static final short VERY_EARLY = (Short.MIN_VALUE / 3) * 2;
public static final short EARLY = Short.MIN_VALUE / 3;
public static final short NORMAL = 0;
public static final short LATE = Short.MAX_VALUE / 3;
public static final short VERY_LATE = (Short.MAX_VALUE / 3) * 2;
public static final short LAST = Short.MAX_VALUE;
}

View File

@ -1,13 +0,0 @@
package net.ME1312.SubServers.Host.Library.Event;
/**
* Event Priority Class<br>
* Events will be run Lowest to Highest
*/
public enum EventPriority {
LOWEST,
LOW,
NORMAL,
HIGH,
HIGHEST,
}

View File

@ -18,7 +18,7 @@ import java.util.*;
* SubAPI Class
*/
public final class SubAPI {
final HashMap<EventPriority, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>> listeners = new LinkedHashMap<EventPriority, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>>();
final TreeMap<Short, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>> listeners = new TreeMap<Short, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>>();
final HashMap<UUID, Timer> schedule = new HashMap<UUID, Timer>();
final TreeMap<String, Command> commands = new TreeMap<String, Command>();
final HashMap<String, SubPluginInfo> plugins = new LinkedHashMap<String, SubPluginInfo>();
@ -222,7 +222,7 @@ public final class SubAPI {
if (!method.isAnnotationPresent(EventHandler.class)) continue;
if (method.getParameterTypes().length == 1) {
if (Event.class.isAssignableFrom(method.getParameterTypes()[0])) {
HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>> events = (listeners.keySet().contains(method.getAnnotation(EventHandler.class).priority()))?listeners.get(method.getAnnotation(EventHandler.class).priority()):new LinkedHashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>();
HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>> events = (listeners.keySet().contains(method.getAnnotation(EventHandler.class).order()))?listeners.get(method.getAnnotation(EventHandler.class).order()):new LinkedHashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>();
HashMap<SubPluginInfo, HashMap<Object, List<Method>>> plugins = (events.keySet().contains((Class<Event>) method.getParameterTypes()[0]))?events.get((Class<Event>) method.getParameterTypes()[0]):new LinkedHashMap<SubPluginInfo, HashMap<Object, List<Method>>>();
HashMap<Object, List<Method>> listeners = (plugins.keySet().contains(plugin))?plugins.get(plugin):new LinkedHashMap<Object, List<Method>>();
List<Method> methods = (listeners.keySet().contains(listener))?listeners.get(listener):new LinkedList<Method>();
@ -230,7 +230,7 @@ public final class SubAPI {
listeners.put(listener, methods);
plugins.put(plugin, listeners);
events.put((Class<Event>) method.getParameterTypes()[0], plugins);
this.listeners.put(method.getAnnotation(EventHandler.class).priority(), events);
this.listeners.put(method.getAnnotation(EventHandler.class).order(), events);
} else {
this.host.log.error.println(
"Cannot register EventHandler in class \"" + listener.getClass().getCanonicalName() + "\" using method \"" + method.getName() + "\":",
@ -255,17 +255,17 @@ public final class SubAPI {
}
void removeListener(SubPluginInfo plugin, Object listener) {
if (Util.isNull(plugin, listener)) throw new NullPointerException();
HashMap<EventPriority, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>> map = new LinkedHashMap<EventPriority, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>>(listeners);
for (EventPriority priority : map.keySet()) {
for (Class<? extends Event> event : map.get(priority).keySet()) {
if (map.get(priority).get(event).keySet().contains(plugin) && map.get(priority).get(event).get(plugin).keySet().contains(listener)) {
HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>> events = listeners.get(priority);
HashMap<SubPluginInfo, HashMap<Object, List<Method>>> plugins = listeners.get(priority).get(event);
HashMap<Object, List<Method>> listeners = this.listeners.get(priority).get(event).get(plugin);
TreeMap<Short, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>> map = new TreeMap<Short, HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>>>(listeners);
for (Short order : map.keySet()) {
for (Class<? extends Event> event : map.get(order).keySet()) {
if (map.get(order).get(event).keySet().contains(plugin) && map.get(order).get(event).get(plugin).keySet().contains(listener)) {
HashMap<Class<? extends Event>, HashMap<SubPluginInfo, HashMap<Object, List<Method>>>> events = listeners.get(order);
HashMap<SubPluginInfo, HashMap<Object, List<Method>>> plugins = listeners.get(order).get(event);
HashMap<Object, List<Method>> listeners = this.listeners.get(order).get(event).get(plugin);
listeners.remove(listener);
plugins.put(plugin, listeners);
events.put(event, plugins);
this.listeners.put(priority, events);
this.listeners.put(order, events);
}
}
}
@ -278,9 +278,9 @@ public final class SubAPI {
*/
public void executeEvent(Event event) {
if (Util.isNull(event)) throw new NullPointerException();
for (EventPriority priority : listeners.keySet()) {
if (!listeners.get(priority).keySet().contains(event.getClass())) continue;
for (SubPluginInfo plugin : listeners.get(priority).get(event.getClass()).keySet()) {
for (Short order : listeners.keySet()) {
if (!listeners.get(order).keySet().contains(event.getClass())) continue;
for (SubPluginInfo plugin : listeners.get(order).get(event.getClass()).keySet()) {
try {
Field pf = Event.class.getDeclaredField("plugin");
pf.setAccessible(true);
@ -289,8 +289,8 @@ public final class SubAPI {
} catch (Exception e) {
this.host.log.error.println(e);
}
for (Object listener : listeners.get(priority).get(event.getClass()).get(plugin).keySet()) {
for (Method method : listeners.get(priority).get(event.getClass()).get(plugin).get(listener)) {
for (Object listener : listeners.get(order).get(event.getClass()).get(plugin).keySet()) {
for (Method method : listeners.get(order).get(event.getClass()).get(plugin).get(listener)) {
if (event instanceof Cancellable && ((Cancellable) event).isCancelled() && !method.getAnnotation(EventHandler.class).override()) continue;
try {
method.invoke(listener, event);