Search in sources :

Example 56 with Text

use of net.minecraft.text.Text in project dynmap by webbukkit.

the class FabricPlayer method sendMessage.

@Override
public void sendMessage(String msg) {
    Text ichatcomponent = new LiteralText(msg);
    player.sendMessage(ichatcomponent);
}
Also used : LiteralText(net.minecraft.text.LiteralText) Text(net.minecraft.text.Text) LiteralText(net.minecraft.text.LiteralText)

Example 57 with Text

use of net.minecraft.text.Text in project dynmap by webbukkit.

the class FabricCommandSender method sendMessage.

@Override
public void sendMessage(String msg) {
    if (sender != null) {
        Text ichatcomponent = new LiteralText(msg);
        sender.sendFeedback(ichatcomponent, false);
    }
}
Also used : LiteralText(net.minecraft.text.LiteralText) Text(net.minecraft.text.Text) LiteralText(net.minecraft.text.LiteralText)

Example 58 with Text

use of net.minecraft.text.Text in project dynmap by webbukkit.

the class FabricCommandSender method sendMessage.

@Override
public void sendMessage(String msg) {
    if (sender != null) {
        Text ichatcomponent = new LiteralText(msg);
        sender.sendFeedback(ichatcomponent, false);
    }
}
Also used : LiteralText(net.minecraft.text.LiteralText) Text(net.minecraft.text.Text) LiteralText(net.minecraft.text.LiteralText)

Example 59 with Text

use of net.minecraft.text.Text in project dynmap by webbukkit.

the class FabricPlayer method sendMessage.

@Override
public void sendMessage(String msg) {
    Text ichatcomponent = new LiteralText(msg);
    player.sendSystemMessage(ichatcomponent, Util.NIL_UUID);
}
Also used : LiteralText(net.minecraft.text.LiteralText) Text(net.minecraft.text.Text) LiteralText(net.minecraft.text.LiteralText)

Example 60 with Text

use of net.minecraft.text.Text in project dynmap by webbukkit.

the class FabricPlayer method sendMessage.

@Override
public void sendMessage(String msg) {
    Text ichatcomponent = new LiteralText(msg);
    player.sendSystemMessage(ichatcomponent, Util.NIL_UUID);
}
Also used : LiteralText(net.minecraft.text.LiteralText) Text(net.minecraft.text.Text) LiteralText(net.minecraft.text.LiteralText)

Aggregations

Text (net.minecraft.text.Text)108 LiteralText (net.minecraft.text.LiteralText)70 TranslatableText (net.minecraft.text.TranslatableText)35 Inject (org.spongepowered.asm.mixin.injection.Inject)14 ArrayList (java.util.ArrayList)13 ItemStack (net.minecraft.item.ItemStack)12 MinecraftClient (net.minecraft.client.MinecraftClient)11 MutableText (net.minecraft.text.MutableText)10 Formatting (net.minecraft.util.Formatting)10 ServerPlayerEntity (net.minecraft.server.network.ServerPlayerEntity)9 List (java.util.List)7 ServerCommandSource (net.minecraft.server.command.ServerCommandSource)6 HoverEvent (net.minecraft.text.HoverEvent)6 TextColor (net.minecraft.text.TextColor)6 Mixin (org.spongepowered.asm.mixin.Mixin)6 At (org.spongepowered.asm.mixin.injection.At)6 ButtonWidget (net.minecraft.client.gui.widget.ButtonWidget)5 Redirect (org.spongepowered.asm.mixin.injection.Redirect)5 JsonObject (com.google.gson.JsonObject)4 GameProfile (com.mojang.authlib.GameProfile)4