Update PlayerUtils.java

Misc formatting and javadocs.
This commit is contained in:
Sunstrike committed 2014-01-06 20:51:08 +00:00
1 parent d4f5ebbca2
commit 94b1983cf6
1 file changed
+10
+10
View File
@@ -3,11 +3,21 @@ package mantle.player;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
/**
* Misc utils for dealing with players.
*
* @author progwml6
*/
public class PlayerUtils
{
/**
* Sends a given message to a specific player (due to 1.7 axing addChatMessage())
*/
public static void sendChatMessage (EntityPlayer p, String message)
{
if (p != null && message != null && message.isEmpty())
p.func_146105_b(new ChatComponentText(message));
}
}