Remove uses of java.awt (#5591)

`java.awt` will statically load itself when `java.awt.Color`, `java.awt.Dimension`, etc are loaded.
This conflicts with lwjgl3 and must be avoided (except for in mojang's server gui).
This commit is contained in:
mezz authored and LexManos committed 2019-03-25 12:06:20 -07:00
1 parent 5e7279b0a2
commit 5fa732d223
11 files changed
+83 -39

No files matched your search

@@ -25,7 +25,6 @@ import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.eventbus.api.Cancelable;
import net.minecraftforge.eventbus.api.Event;
import java.awt.image.BufferedImage;
import java.io.File;
/**
@@ -34,7 +33,7 @@ import java.io.File;
* This event is {@link Cancelable}
*
* {@link #screenshotFile} contains the file the screenshot will be/was saved to
* {@link #image} contains the {@link BufferedImage} that will be saved
* {@link #image} contains the {@link NativeImage} that will be saved
* {@link #resultMessage} contains the {@link ITextComponent} to be returned. If {@code null}, the default vanilla message will be used instead
*/
@Cancelable