2012-08-15 02:01:38 -07:00
|
|
|
package net.minecraftforge.event;
|
|
|
|
|
|
2013-12-16 20:18:48 -05:00
|
|
|
import cpw.mods.fml.common.eventhandler.Cancelable;
|
|
|
|
|
import cpw.mods.fml.common.eventhandler.Event;
|
2012-12-12 21:58:35 -08:00
|
|
|
import net.minecraft.command.ICommand;
|
|
|
|
|
import net.minecraft.command.ICommandSender;
|
2012-08-15 02:01:38 -07:00
|
|
|
|
|
|
|
|
@Cancelable
|
|
|
|
|
public class CommandEvent extends Event
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public final ICommand command;
|
|
|
|
|
public final ICommandSender sender;
|
|
|
|
|
public String[] parameters;
|
|
|
|
|
public Throwable exception;
|
|
|
|
|
|
|
|
|
|
public CommandEvent(ICommand command, ICommandSender sender, String[] parameters)
|
|
|
|
|
{
|
|
|
|
|
this.command = command;
|
|
|
|
|
this.sender = sender;
|
|
|
|
|
this.parameters = parameters;
|
|
|
|
|
}
|
|
|
|
|
}
|