mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-28 07:35:44 +00:00
Moved sources and reverted mappings
This commit is contained in:
1 parent
eca0729231
commit
12a0722e28
106 files changed
+29
-29
No files matched your search
@@ -0,0 +1,23 @@
|
||||
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.addChatComponentMessage(new ChatComponentText(message));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user