mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
Pff + docs
This commit is contained in:
@@ -43,8 +43,7 @@ public class DecreeNode {
|
|||||||
* Get the parameters of this decree node
|
* Get the parameters of this decree node
|
||||||
* @return The list of parameters if ALL are annotated by @{@link Param}, else null
|
* @return The list of parameters if ALL are annotated by @{@link Param}, else null
|
||||||
*/
|
*/
|
||||||
public KList<DecreeParameter> getParameters()
|
public KList<DecreeParameter> getParameters() {
|
||||||
{
|
|
||||||
KList<DecreeParameter> p = new KList<>();
|
KList<DecreeParameter> p = new KList<>();
|
||||||
|
|
||||||
for(Parameter i : method.getParameters())
|
for(Parameter i : method.getParameters())
|
||||||
@@ -59,23 +58,19 @@ public class DecreeNode {
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName()
|
public String getName() {
|
||||||
{
|
|
||||||
return decree.name().equals(Decree.METHOD_NAME) ? method.getName() : decree.name();
|
return decree.name().equals(Decree.METHOD_NAME) ? method.getName() : decree.name();
|
||||||
}
|
}
|
||||||
|
|
||||||
public DecreeOrigin getOrigin()
|
public DecreeOrigin getOrigin() {
|
||||||
{
|
|
||||||
return decree.origin();
|
return decree.origin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription()
|
public String getDescription() {
|
||||||
{
|
|
||||||
return decree.description().isEmpty() ? Decree.DEFAULT_DESCRIPTION : decree.description();
|
return decree.description().isEmpty() ? Decree.DEFAULT_DESCRIPTION : decree.description();
|
||||||
}
|
}
|
||||||
|
|
||||||
public KList<String> getAliases()
|
public KList<String> getAliases() {
|
||||||
{
|
|
||||||
KList<String> d = new KList<>();
|
KList<String> d = new KList<>();
|
||||||
|
|
||||||
if (Arrays.equals(decree.aliases(), new String[]{Decree.NO_ALIASES})){
|
if (Arrays.equals(decree.aliases(), new String[]{Decree.NO_ALIASES})){
|
||||||
|
|||||||
@@ -21,5 +21,8 @@ package com.volmit.iris.util.decree;
|
|||||||
public enum DecreeOrigin {
|
public enum DecreeOrigin {
|
||||||
PLAYER,
|
PLAYER,
|
||||||
CONSOLE,
|
CONSOLE,
|
||||||
|
/**
|
||||||
|
* Both the player and the console
|
||||||
|
*/
|
||||||
BOTH
|
BOTH
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user