final Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize(); final Rectangle screenRectangle = new Rectangle(screenDimension); final Robot robot ...
Mojang recently introduced a brand new F3 debug screen for Minecraft Java Edition in the latest snapshot 25w31a. This snapshot is part of the upcoming game drop that will release sometime in the fall.