Files
MinecraftForge/src/main/java/net/minecraftforge/event/ServerChatEvent.java
T

22 lines
715 B
Java
Raw Normal View History

package net.minecraftforge.event;
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.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;
2014-02-05 00:05:37 -08:00
this.username = player.getGameProfile().getName();
this.component = component;
}
}