mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
23 lines
715 B
Java
23 lines
715 B
Java
package net.minecraftforge.event;
|
|
|
|
import cpw.mods.fml.common.eventhandler.Cancelable;
|
|
import cpw.mods.fml.common.eventhandler.Event;
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
import net.minecraft.util.ChatComponentTranslation;
|
|
|
|
@Cancelable
|
|
public class ServerChatEvent extends Event
|
|
{
|
|
public final String message, username;
|
|
public final EntityPlayerMP player;
|
|
public ChatComponentTranslation component;
|
|
public ServerChatEvent(EntityPlayerMP player, String message, ChatComponentTranslation component)
|
|
{
|
|
super();
|
|
this.message = message;
|
|
this.player = player;
|
|
this.username = player.func_146103_bH().getName();
|
|
this.component = component;
|
|
}
|
|
}
|