AWT is forbidden on 1.13+ (this includes BufferedImage)
Instead use NativeImage on 1.13+ via newly introduced Image class. See Image docs for details. Also fixes an issue with thumbnail taking on 1.13+: The original ScreenshotHelper method is now async, luckily there's a sync variant and as a bonus it directly returns a NativeImage so we can skip having to read the screenshot from disk.
This commit is contained in:
@@ -47,7 +47,7 @@ net.minecraft.client.util.Session net.minecraft.util.Session
|
||||
net.minecraft.client.util.Session getAccessToken() getToken()
|
||||
net.minecraft.server.integrated.IntegratedServer field_5524 isGamePaused
|
||||
net.minecraft.client.util.ScreenshotUtils net.minecraft.util.ScreenShotHelper
|
||||
net.minecraft.client.util.ScreenshotUtils method_1662() saveScreenshot()
|
||||
net.minecraft.client.util.ScreenshotUtils method_1663() createScreenshot()
|
||||
net.minecraft.client.render.ChunkRenderDispatcher net.minecraft.client.renderer.ViewFrustum
|
||||
net.minecraft.client.render.ChunkRenderDispatcher updateCameraPosition() updateChunkPositions()
|
||||
net.minecraft.client.render.block.entity.EndPortalBlockEntityRenderer net.minecraft.client.renderer.tileentity.TileEntityEndPortalRenderer
|
||||
|
||||
Reference in New Issue
Block a user