public class CommandEvent extends 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
.Event.HasResult, Event.Result
コンストラクタと説明 |
---|
CommandEvent(com.mojang.brigadier.ParseResults<CommandSource> parse) |
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.Throwable |
getException() |
com.mojang.brigadier.ParseResults<CommandSource> |
getParseResults() |
void |
setException(java.lang.Throwable exception) |
void |
setParseResults(com.mojang.brigadier.ParseResults<CommandSource> parse) |
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
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)