mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-18 03:15:24 +00:00
Update PlayerUtils.java
Misc formatting and javadocs.
This commit is contained in:
1 parent
d4f5ebbca2
commit
94b1983cf6
1 file changed
+10
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user