2012-10-28 10:58:23 +00:00
|
|
|
package net.minecraftforge.event;
|
|
|
|
|
2012-12-13 05:58:35 +00:00
|
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
2013-06-30 12:50:11 +00:00
|
|
|
import net.minecraft.util.ChatMessageComponent;
|
2012-10-28 10:58:23 +00:00
|
|
|
|
|
|
|
@Cancelable
|
2013-02-15 11:22:59 +00:00
|
|
|
public class ServerChatEvent extends Event
|
|
|
|
{
|
2012-10-28 10:58:23 +00:00
|
|
|
public final String message, username;
|
|
|
|
public final EntityPlayerMP player;
|
2013-06-30 12:50:11 +00:00
|
|
|
public ChatMessageComponent component;
|
2013-07-01 01:13:01 +00:00
|
|
|
public ServerChatEvent(EntityPlayerMP player, String message, ChatMessageComponent component)
|
2012-10-28 10:58:23 +00:00
|
|
|
{
|
|
|
|
super();
|
|
|
|
this.message = message;
|
|
|
|
this.player = player;
|
|
|
|
this.username = player.username;
|
2013-06-30 12:50:11 +00:00
|
|
|
this.component = component;
|
2012-10-28 10:58:23 +00:00
|
|
|
}
|
|
|
|
}
|