mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Removed RenderWorldEvent, encapsulated all public event fields.
This commit is contained in:
1 parent
08c00662a0
commit
756c58d5cb
110 files changed
+1642
-680
No files matched your search
@@ -26,15 +26,22 @@ import net.minecraft.command.ICommandSender;
|
||||
public class CommandEvent extends Event
|
||||
{
|
||||
|
||||
public final ICommand command;
|
||||
public final ICommandSender sender;
|
||||
public String[] parameters;
|
||||
public Throwable exception;
|
||||
private final ICommand command;
|
||||
private final ICommandSender sender;
|
||||
private String[] parameters;
|
||||
private Throwable exception;
|
||||
|
||||
public CommandEvent(ICommand command, ICommandSender sender, String[] parameters)
|
||||
{
|
||||
this.command = command;
|
||||
this.sender = sender;
|
||||
this.parameters = parameters;
|
||||
this.setParameters(parameters);
|
||||
}
|
||||
|
||||
public ICommand getCommand() { return command; }
|
||||
public ICommandSender getSender() { return sender; }
|
||||
public String[] getParameters() { return parameters; }
|
||||
public void setParameters(String[] parameters) { this.parameters = parameters; }
|
||||
public Throwable getException() { return exception; }
|
||||
public void setException(Throwable exception) { this.exception = exception; }
|
||||
}
|
||||
Reference in new issue
Block a user