public class CommandEvent
extends net.minecraftforge.eventbus.api.Event
Commands.handleCommand(CommandSource, String)
. parse
contains the instance of ParseResults
for the parsed command.exception
begins null, but can be populated with an exception to be thrown within the command.Cancelable
. HasResult
MinecraftForge.EVENT_BUS
.Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
exception |
private com.mojang.brigadier.ParseResults<CommandSource> |
parse |
Constructor and Description |
---|
CommandEvent(com.mojang.brigadier.ParseResults<CommandSource> parse) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getException() |
com.mojang.brigadier.ParseResults<CommandSource> |
getParseResults() |
void |
setException(java.lang.Throwable exception) |
void |
setParseResults(com.mojang.brigadier.ParseResults<CommandSource> parse) |
private com.mojang.brigadier.ParseResults<CommandSource> parse
private java.lang.Throwable exception
public CommandEvent(com.mojang.brigadier.ParseResults<CommandSource> parse)
public com.mojang.brigadier.ParseResults<CommandSource> getParseResults()
public void setParseResults(com.mojang.brigadier.ParseResults<CommandSource> parse)
public java.lang.Throwable getException()
public void setException(java.lang.Throwable exception)