Moved sources and reverted mappings

This commit is contained in:
Johann Bernhardt committed 2021-11-22 09:55:45 +01:00
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));
}
}