Permalink
Browse files

(DEPLOYED ACF) Updated JavaDocs

  • Loading branch information...
aikar committed Feb 5, 2019
1 parent 999c803 commit 1a12993a924120202550a794e26416aba4a34a56
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -189,13 +189,17 @@ <h3>Method Summary</h3>
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;alias,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../co/aikar/commands/BukkitRootCommand.html#testPermissionSilent-org.bukkit.command.CommandSender-">testPermissionSilent</a></span>(org.bukkit.command.CommandSender&nbsp;target)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.bukkit.command.Command">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.bukkit.command.Command</h3>
<code>broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister</code></li>
<code>broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, toString, unregister</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
@@ -209,7 +213,7 @@ <h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;co.aikar.commands.RootCommand</h3>
<code>addChildShared, execute, getBaseCommand, getDefaultRegisteredCommand, getDescription, getTabCompletions, getTabCompletions, getTabCompletions, getUsage</code></li>
<code>addChildShared, execute, getBaseCommand, getDefaultRegisteredCommand, getDescription, getTabCompletions, getTabCompletions, getTabCompletions, getUniquePermission, getUsage, hasAnyPermission</code></li>
</ul>
</li>
</ul>
@@ -271,13 +275,26 @@ <h4>execute</h4>
</dl>
</li>
</ul>
<a name="testPermissionSilent-org.bukkit.command.CommandSender-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>testPermissionSilent</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.67">testPermissionSilent</a>(org.bukkit.command.CommandSender&nbsp;target)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>testPermissionSilent</code>&nbsp;in class&nbsp;<code>org.bukkit.command.Command</code></dd>
</dl>
</li>
</ul>
<a name="addChild-co.aikar.commands.BaseCommand-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addChild</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.66">addChild</a>(co.aikar.commands.BaseCommand&nbsp;command)</pre>
<pre>public&nbsp;void&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.71">addChild</a>(co.aikar.commands.BaseCommand&nbsp;command)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>addChild</code>&nbsp;in interface&nbsp;<code>co.aikar.commands.RootCommand</code></dd>
@@ -290,7 +307,7 @@ <h4>addChild</h4>
<ul class="blockList">
<li class="blockList">
<h4>getManager</h4>
<pre>public&nbsp;co.aikar.commands.CommandManager&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.77">getManager</a>()</pre>
<pre>public&nbsp;co.aikar.commands.CommandManager&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.82">getManager</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getManager</code>&nbsp;in interface&nbsp;<code>co.aikar.commands.RootCommand</code></dd>
@@ -303,7 +320,7 @@ <h4>getManager</h4>
<ul class="blockList">
<li class="blockList">
<h4>getSubCommands</h4>
<pre>public&nbsp;com.google.common.collect.SetMultimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,co.aikar.commands.RegisteredCommand&gt;&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.82">getSubCommands</a>()</pre>
<pre>public&nbsp;com.google.common.collect.SetMultimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,co.aikar.commands.RegisteredCommand&gt;&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.87">getSubCommands</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getSubCommands</code>&nbsp;in interface&nbsp;<code>co.aikar.commands.RootCommand</code></dd>
@@ -316,7 +333,7 @@ <h4>getSubCommands</h4>
<ul class="blockList">
<li class="blockList">
<h4>getChildren</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;co.aikar.commands.BaseCommand&gt;&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.87">getChildren</a>()</pre>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;co.aikar.commands.BaseCommand&gt;&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.92">getChildren</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getChildren</code>&nbsp;in interface&nbsp;<code>co.aikar.commands.RootCommand</code></dd>
@@ -329,7 +346,7 @@ <h4>getChildren</h4>
<ul class="blockListLast">
<li class="blockList">
<h4>getDefCommand</h4>
<pre>public&nbsp;co.aikar.commands.BaseCommand&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.92">getDefCommand</a>()</pre>
<pre>public&nbsp;co.aikar.commands.BaseCommand&nbsp;<a href="../../../src-html/co/aikar/commands/BukkitRootCommand.html#line.97">getDefCommand</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getDefCommand</code>&nbsp;in interface&nbsp;<code>co.aikar.commands.RootCommand</code></dd>
@@ -403,6 +403,8 @@ <h2 class="title">T</h2>
<dl>
<dt><span class="memberNameLink"><a href="co/aikar/commands/BukkitRootCommand.html#tabComplete-org.bukkit.command.CommandSender-java.lang.String-java.lang.String:A-">tabComplete(CommandSender, String, String[])</a></span> - Method in class co.aikar.commands.<a href="co/aikar/commands/BukkitRootCommand.html" title="class in co.aikar.commands">BukkitRootCommand</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="co/aikar/commands/BukkitRootCommand.html#testPermissionSilent-org.bukkit.command.CommandSender-">testPermissionSilent(CommandSender)</a></span> - Method in class co.aikar.commands.<a href="co/aikar/commands/BukkitRootCommand.html" title="class in co.aikar.commands">BukkitRootCommand</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="co/aikar/commands/contexts/OnlinePlayer.html#toString--">toString()</a></span> - Method in class co.aikar.commands.contexts.<a href="co/aikar/commands/contexts/OnlinePlayer.html" title="class in co.aikar.commands.contexts">OnlinePlayer</a></dt>
<dd>&nbsp;</dd>
</dl>
@@ -71,37 +71,42 @@
<span class="sourceLineNo">063</span> return true;<a name="line.63"></a>
<span class="sourceLineNo">064</span> }<a name="line.64"></a>
<span class="sourceLineNo">065</span><a name="line.65"></a>
<span class="sourceLineNo">066</span> public void addChild(BaseCommand command) {<a name="line.66"></a>
<span class="sourceLineNo">067</span> if (this.defCommand == null || !command.subCommands.get(BaseCommand.DEFAULT).isEmpty()) {<a name="line.67"></a>
<span class="sourceLineNo">068</span> this.defCommand = command;<a name="line.68"></a>
<span class="sourceLineNo">069</span> this.setPermission(command.permission);<a name="line.69"></a>
<span class="sourceLineNo">070</span> //this.setDescription(command.getDescription());<a name="line.70"></a>
<span class="sourceLineNo">071</span> //this.setUsage(command.getUsage());<a name="line.71"></a>
<span class="sourceLineNo">072</span> }<a name="line.72"></a>
<span class="sourceLineNo">073</span> addChildShared(this.children, this.subCommands, command);<a name="line.73"></a>
<span class="sourceLineNo">074</span> }<a name="line.74"></a>
<span class="sourceLineNo">075</span><a name="line.75"></a>
<span class="sourceLineNo">076</span> @Override<a name="line.76"></a>
<span class="sourceLineNo">077</span> public CommandManager getManager() {<a name="line.77"></a>
<span class="sourceLineNo">078</span> return manager;<a name="line.78"></a>
<span class="sourceLineNo">066</span> @Override<a name="line.66"></a>
<span class="sourceLineNo">067</span> public boolean testPermissionSilent(CommandSender target) {<a name="line.67"></a>
<span class="sourceLineNo">068</span> return hasAnyPermission(manager.getCommandIssuer(target));<a name="line.68"></a>
<span class="sourceLineNo">069</span> }<a name="line.69"></a>
<span class="sourceLineNo">070</span><a name="line.70"></a>
<span class="sourceLineNo">071</span> public void addChild(BaseCommand command) {<a name="line.71"></a>
<span class="sourceLineNo">072</span> if (this.defCommand == null || !command.subCommands.get(BaseCommand.DEFAULT).isEmpty()) {<a name="line.72"></a>
<span class="sourceLineNo">073</span> this.defCommand = command;<a name="line.73"></a>
<span class="sourceLineNo">074</span> //this.setDescription(command.getDescription());<a name="line.74"></a>
<span class="sourceLineNo">075</span> //this.setUsage(command.getUsage());<a name="line.75"></a>
<span class="sourceLineNo">076</span> }<a name="line.76"></a>
<span class="sourceLineNo">077</span> addChildShared(this.children, this.subCommands, command);<a name="line.77"></a>
<span class="sourceLineNo">078</span> setPermission(getUniquePermission());<a name="line.78"></a>
<span class="sourceLineNo">079</span> }<a name="line.79"></a>
<span class="sourceLineNo">080</span><a name="line.80"></a>
<span class="sourceLineNo">081</span> @Override<a name="line.81"></a>
<span class="sourceLineNo">082</span> public SetMultimap&lt;String, RegisteredCommand&gt; getSubCommands() {<a name="line.82"></a>
<span class="sourceLineNo">083</span> return this.subCommands;<a name="line.83"></a>
<span class="sourceLineNo">082</span> public CommandManager getManager() {<a name="line.82"></a>
<span class="sourceLineNo">083</span> return manager;<a name="line.83"></a>
<span class="sourceLineNo">084</span> }<a name="line.84"></a>
<span class="sourceLineNo">085</span><a name="line.85"></a>
<span class="sourceLineNo">086</span> @Override<a name="line.86"></a>
<span class="sourceLineNo">087</span> public List&lt;BaseCommand&gt; getChildren() {<a name="line.87"></a>
<span class="sourceLineNo">088</span> return children;<a name="line.88"></a>
<span class="sourceLineNo">087</span> public SetMultimap&lt;String, RegisteredCommand&gt; getSubCommands() {<a name="line.87"></a>
<span class="sourceLineNo">088</span> return this.subCommands;<a name="line.88"></a>
<span class="sourceLineNo">089</span> }<a name="line.89"></a>
<span class="sourceLineNo">090</span><a name="line.90"></a>
<span class="sourceLineNo">091</span> @Override<a name="line.91"></a>
<span class="sourceLineNo">092</span> public BaseCommand getDefCommand(){<a name="line.92"></a>
<span class="sourceLineNo">093</span> return defCommand;<a name="line.93"></a>
<span class="sourceLineNo">092</span> public List&lt;BaseCommand&gt; getChildren() {<a name="line.92"></a>
<span class="sourceLineNo">093</span> return children;<a name="line.93"></a>
<span class="sourceLineNo">094</span> }<a name="line.94"></a>
<span class="sourceLineNo">095</span><a name="line.95"></a>
<span class="sourceLineNo">096</span>}<a name="line.96"></a>
<span class="sourceLineNo">096</span> @Override<a name="line.96"></a>
<span class="sourceLineNo">097</span> public BaseCommand getDefCommand() {<a name="line.97"></a>
<span class="sourceLineNo">098</span> return defCommand;<a name="line.98"></a>
<span class="sourceLineNo">099</span> }<a name="line.99"></a>
<span class="sourceLineNo">100</span><a name="line.100"></a>
<span class="sourceLineNo">101</span>}<a name="line.101"></a>



Oops, something went wrong.

0 comments on commit 1a12993

Please sign in to comment.