From 73191b9b57400e359d9636947df3e7de4957bb11 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sat, 6 Aug 2022 23:00:59 +0200 Subject: moved debug into clipboard --- src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java b/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java index 77095bcd2..6b5bb8097 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java +++ b/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java @@ -1,5 +1,7 @@ package at.hannibal2.skyhanni.config.gui.utils; +import java.awt.*; +import java.awt.datatransfer.StringSelection; import java.math.RoundingMode; import java.nio.FloatBuffer; import java.text.DecimalFormat; @@ -364,4 +366,8 @@ public class Utils { if (!stack.getTagCompound().getCompoundTag("ExtraAttributes").hasKey("id")) return null; return stack.getTagCompound().getCompoundTag("ExtraAttributes").getString("id"); } + public static void copyToClipboard(String str) { + Toolkit.getDefaultToolkit().getSystemClipboard() + .setContents(new StringSelection(str), null); + } } -- cgit