Search in sources :

Example 1 with PacketClipboard

use of gregtech.api.net.PacketClipboard in project GregTech by GregTechCE.

the class ClipboardUtil method copyToClipboard.

public static void copyToClipboard(final EntityPlayerMP player, final String text) {
    PacketClipboard packet = new PacketClipboard(text);
    NetworkHandler.channel.sendTo(packet.toFMLPacket(), player);
}
Also used : PacketClipboard(gregtech.api.net.PacketClipboard)

Aggregations

PacketClipboard (gregtech.api.net.PacketClipboard)1