2024-07-24 01:21:47 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* ChatUtil
|
|
|
|
*
|
|
|
|
* Helpful utility for pretty printing in chat in the game with different supported functions and levels
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
package jesse.keeblarcraft.Utils;
|
|
|
|
|
2024-07-29 00:13:48 +00:00
|
|
|
import net.minecraft.server.network.ServerPlayerEntity;
|
|
|
|
import net.minecraft.text.Text;
|
|
|
|
|
|
|
|
public class ChatUtil {
|
|
|
|
|
|
|
|
// Helpful print wrapper function
|
|
|
|
static public void SendPlayerMsg(ServerPlayerEntity player, String text) {
|
|
|
|
player.sendMessage(Text.literal(text));
|
|
|
|
}
|
|
|
|
}
|