События переключения на предмет и отрисовка на экране

Версия Minecraft
1.16.4
API
Forge
Искал в учебнике событие, которое ловит когда игрок берет новый предмет в руку.
Я хочу сделать так, чтобы когда игрок берет, например градусник, то справа в углу появляться надпись с температурой, но не нашел такого события в списке учебника.
Ну и конечно интересует вопрос, как отрисовать значение?
Я себе представляю это так, как когда игрок взял нужный предмет в руки, то вызывается метод отрисовки, который берет значение из переменной и рисует его на экране, если игрок убрал предмет с рук, то значение больше не рисуется на экране.
Вполне подошел бы вариант отрисовки по типу "27°С", но если бы можно было добавить какой-то progressbar, чтобы выглядело как настоящий градусник, было бы очень круто.
Если отрисовка прогресбара намного запарней простого текста, то не нужно, пока что)

Так же интересно, будет ли работать это, когда игрок берет предмет в левую руку и как можно сделать это)
 
7,109
326
1,512
LivingEquipmentChangeEvent
Пасибки


Полетел читать что и для чего)


Тебе не нужно никакое событие. Ты в рендере просто проверяешь предмет в руках и рисуешь что тебе надо.
А тут можно немного подробней? По типу это получается что в рендере вызывается проверка каждый тик? Или как это работает?))
 
Каждый кадр. Или ты и это хочешь "оптимизировать"? Успокойся, чел, мы не в 50-х годах, таких простых операций процессор может выполнять миллионами.
Хмс, окей, я думал что рендеринг чего либо не очень простая задача)


Тебе не нужно никакое событие. Ты в рендере просто проверяешь предмет в руках и рисуешь что тебе надо.
Тогда как это сделать?)
 
7,109
326
1,512
RenderGameOverlayEvent позволяет сделать дополнительный рендер худа(HUD). Прямо в нем чекай предмет в руке игрока и рисуй индикатор градусника.
Пример рендера, работающего по тому же принципу - когда игрок держит вруке определенный предмет, то появляется индикатор:
 
На 1.16 есть это событие
Событие то есть, как сделать проверку на предмет в руке я сделать тоже смогу. Но вот как именно отрисовать на экране текст я не знаю(
Уже лазил и по английским форумам, думал может кто-то, задавал подобный вопрос, но так и не нашел как рисовать текст на экране(
 

tox1cozZ

aka Agravaine
8,454
598
2,895
Сомневаюсь что ты пришел сюда со знаниями программирования, как ты утверждал ранее. Для тебя не было трудным открыть исходники игры и найти пару строк отрисовки текста.
 
Сомневаюсь что ты пришел сюда со знаниями программирования, как ты утверждал ранее. Для тебя не было трудным открыть исходники игры и найти пару строк отрисовки текста.
Ам, ну я это и делал, я нашел что-то в AbstractGui, а именно drawString, попытался что-то с этим сделать

Java:
@SubscribeEvent
    public static void renderGUI(RenderGameOverlayEvent.Post event)
    {   
        AbstractGui.drawString(event.getMatrixStack(), null, "hello world", 15, 15, 16);
    }
Но, майн просто крашился(
Я посмотрев лог, понял что крашится из-за рендеринга. Попытался поменять параметры и т.п, но не вышло)
 
Да и сложно что-то искать не зная что именно))
Если мне подскажут какой-то метод и как правильно его вызвать, то в будущем, даже забыв об этом, я начну поиски в сторону этого метода, а не как сейчас, перерывая все что связано с рендерингом и гуи
 
7,109
326
1,512
В майне текст рисуют обычно при помощи FontRenderer, его можно достать из Minecraft
 
Писал очень длинный комент, но какого-то хрена он удалился... ААААААААААААААААААААА

В общем нашел я метод drawString

Java:
@SubscribeEvent
    public static void renderGUI(RenderGameOverlayEvent.Post event)
    { 
        FontRenderer fr = new FontRenderer(null);
        fr.drawString(event.getMatrixStack(), "hello world", 15, 15, 8388479);
    }

Но мир все равно крашится
Мне кажется дело в int color, ну т.е цвете для текста(не уверен), я поставил значение 8388479, ибо такое нашел в файлах игры
this.font.drawString(p_237604_1_, "LOCAL!", 0.0F, 0.0F, 8388479);
В чем проблема?)

[08янв2021 23:05:36.418] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 35.1.4, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\Admin\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]
[08янв2021 23:05:36.425] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.6+85+master.325de55 starting: java version 1.8.0_271 by Oracle Corporation
[08янв2021 23:05:38.016] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[08янв2021 23:05:38.111] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.2/1cf212283d26f706fd3074318870bebd14d2a9ed/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT
[08янв2021 23:05:44.162] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Admin\.gradle\caches\forge_gradle\assets, --assetIndex, 1.16, --username, Dev, --accessToken, ????????, --userProperties, {}]
[08янв2021 23:06:07.991] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[08янв2021 23:06:09.492] [Render thread/ERROR] [net.minecraft.client.Minecraft/]: Failed to verify authentication
com.mojang.authlib.exceptions.AuthenticationException: Unauthorized
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:119) ~[authlib-2.1.28.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:94) ~[authlib-2.1.28.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:40) ~[authlib-2.1.28.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:152) ~[authlib-2.1.28.jar:?]
at net.minecraft.client.Minecraft.func_244735_a(Minecraft.java:556) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.Minecraft.<init>(Minecraft.java:388) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.main.Main.main(Main.java:149) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271]
at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda[imath]launchService[/imath]0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?]
at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
[08янв2021 23:06:09.541] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[08янв2021 23:06:09.976] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10
[08янв2021 23:06:23.044] [modloading-worker-0/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 35.1.4, for MC 1.16.4 with MCP 20201102.104115
[08янв2021 23:06:23.045] [modloading-worker-0/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v35.1.4 Initialized
[08янв2021 23:06:28.643] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[08янв2021 23:06:28.778] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
[08янв2021 23:06:28.990] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[08янв2021 23:06:29.565] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 35.1.4 Target: null
[08янв2021 23:06:40.685] [Worker-Main-2/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'magic:barometer#inventory' referenced from: magic:barometer#inventory: java.io.FileNotFoundException: magic:models/item/barometer.json
[08янв2021 23:06:48.572] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[08янв2021 23:06:48.594] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[08янв2021 23:06:49.123] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[08янв2021 23:06:49.514] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
[08янв2021 23:06:49.598] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[08янв2021 23:06:49.647] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[08янв2021 23:06:49.731] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[08янв2021 23:06:49.842] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[08янв2021 23:06:49.923] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[08янв2021 23:06:51.383] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[08янв2021 23:06:51.562] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[08янв2021 23:06:51.564] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[08янв2021 23:06:52.326] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[08янв2021 23:06:57.971] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[08янв2021 23:06:57.973] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[08янв2021 23:06:57.975] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[08янв2021 23:06:57.977] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[08янв2021 23:06:57.980] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[08янв2021 23:06:57.985] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, main, forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar
[08янв2021 23:07:03.155] [Render thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 7 recipes
[08янв2021 23:07:04.976] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 927 advancements
[08янв2021 23:07:05.337] [Render thread/INFO] [net.minecraftforge.registries.GameData/REGISTRIES]: Injecting existing registry data into this CLIENT instance
[08янв2021 23:07:08.276] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[08янв2021 23:07:08.339] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.16.4
[08янв2021 23:07:08.341] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Generating keypair
[08янв2021 23:07:09.262] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:eek:verworld
[08янв2021 23:07:11.091] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[08янв2021 23:07:11.127] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[08янв2021 23:07:11.128] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[08янв2021 23:07:11.129] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[08янв2021 23:07:11.589] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[08янв2021 23:07:12.084] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[08янв2021 23:07:12.926] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[08янв2021 23:07:13.128] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[08янв2021 23:07:13.644] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[08янв2021 23:07:14.141] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[08янв2021 23:07:14.995] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[08янв2021 23:07:15.028] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[08янв2021 23:07:15.637] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 99%
[08янв2021 23:07:15.998] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 6522 ms
[08янв2021 23:07:18.093] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2120ms or 42 ticks behind
[08янв2021 23:07:18.440] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Changing view distance to 3, from 10
[08янв2021 23:07:22.127] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.
[08янв2021 23:07:22.206] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@4529e67f
[08янв2021 23:07:22.374] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:19074284] logged in with entity id 23 at (154.55356957254406, 4.0, -108.04936533728267)
[08янв2021 23:07:22.420] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game
[08янв2021 23:07:25.328] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[08янв2021 23:07:25.511] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[0]'/minecraft:eek:verworld
[08янв2021 23:07:25.700] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 28 advancements
[08янв2021 23:07:26.032] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[0]'/minecraft:the_nether
[08янв2021 23:07:26.182] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[0]'/minecraft:the_end
[08янв2021 23:07:26.911] [Render thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: null
Index: 1
Listeners:
0: NORMAL
1: ASM: class com.magic.core.init.EventsHandler renderGUI(Lnet/minecraftforge/client/event/RenderGameOverlayEvent$Post;)V
java.lang.NullPointerException
at net.minecraft.client.gui.FontRenderer.getFont(FontRenderer.java:53)
at net.minecraft.client.gui.FontRenderer.access$000(FontRenderer.java:38)
at net.minecraft.client.gui.FontRenderer$CharacterRenderer.accept(FontRenderer.java:289)
at net.minecraft.util.text.TextProcessing.func_238344_a_(TextProcessing.java:14)
at net.minecraft.util.text.TextProcessing.func_238340_a_(TextProcessing.java:122)
at net.minecraft.util.text.TextProcessing.func_238339_a_(TextProcessing.java:83)
at net.minecraft.util.text.TextProcessing.func_238346_c_(TextProcessing.java:79)
at net.minecraft.client.gui.FontRenderer.renderStringAtPos(FontRenderer.java:171)
at net.minecraft.client.gui.FontRenderer.func_238423_b_(FontRenderer.java:153)
at net.minecraft.client.gui.FontRenderer.func_238411_a_(FontRenderer.java:126)
at net.minecraft.client.gui.FontRenderer.renderString(FontRenderer.java:108)
at net.minecraft.client.gui.FontRenderer.drawString(FontRenderer.java:67)
at com.magic.core.init.EventsHandler.renderGUI(EventsHandler.java:47)
at net.minecraftforge.eventbus.ASMEventHandler_3_EventsHandler_renderGUI_Post.invoke(.dynamic)
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85)
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297)
at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832)
at net.minecraftforge.client.gui.ForgeIngameGui.renderVignette(ForgeIngameGui.java:276)
at net.minecraftforge.client.gui.ForgeIngameGui.renderIngameGui(ForgeIngameGui.java:128)
at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:483)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1002)
at net.minecraft.client.Minecraft.run(Minecraft.java:612)
at net.minecraft.client.main.Main.main(Main.java:184)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda[imath]launchService[/imath]0(FMLUserdevClientLaunchProvider.java:52)
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82)
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)
at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105)

[08янв2021 23:07:26.922] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 324405dc-b25d-46fa-b73b-c8dc4faef86a
[08янв2021 23:07:26.969] [Render thread/FATAL] [net.minecraft.client.Minecraft/]: Unreported exception thrown!
java.lang.NullPointerException: null
at net.minecraft.client.gui.FontRenderer.getFont(FontRenderer.java:53) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer.access$000(FontRenderer.java:38) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer$CharacterRenderer.accept(FontRenderer.java:289) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.util.text.TextProcessing.func_238344_a_(TextProcessing.java:14) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.util.text.TextProcessing.func_238340_a_(TextProcessing.java:122) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.util.text.TextProcessing.func_238339_a_(TextProcessing.java:83) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.util.text.TextProcessing.func_238346_c_(TextProcessing.java:79) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer.renderStringAtPos(FontRenderer.java:171) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer.func_238423_b_(FontRenderer.java:153) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer.func_238411_a_(FontRenderer.java:126) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer.renderString(FontRenderer.java:108) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.gui.FontRenderer.drawString(FontRenderer.java:67) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at com.magic.core.init.EventsHandler.renderGUI(EventsHandler.java:47) ~[main/:?]
at net.minecraftforge.eventbus.ASMEventHandler_3_EventsHandler_renderGUI_Post.invoke(.dynamic) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-3.0.5-service.jar:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) ~[eventbus-3.0.5-service.jar:?]
at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraftforge.client.gui.ForgeIngameGui.renderVignette(ForgeIngameGui.java:276) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraftforge.client.gui.ForgeIngameGui.renderIngameGui(ForgeIngameGui.java:128) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:483) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1002) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271]
at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda[imath]launchService[/imath]0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?]
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?]
at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?]
[08янв2021 23:07:28.125] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[08янв2021 23:07:28.134] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players
[08янв2021 23:07:28.346] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Disconnected
[08янв2021 23:07:28.418] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev left the game
[08янв2021 23:07:29.278] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Stopping singleplayer server as player logged out
[08янв2021 23:07:29.280] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
[08янв2021 23:07:29.282] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[0]'/minecraft:eek:verworld
[08янв2021 23:07:29.763] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (0): All chunks are saved
[08янв2021 23:07:29.764] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[0]'/minecraft:the_nether
[08янв2021 23:07:29.765] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[08янв2021 23:07:29.766] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[0]'/minecraft:the_end
[08янв2021 23:07:29.767] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[08янв2021 23:07:29.837] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (0): All chunks are saved
[08янв2021 23:07:29.895] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[08янв2021 23:07:29.898] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[08янв2021 23:07:31.749] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:printToSYSOUT:130]: ---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 08.01.21 23:07
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at net.minecraft.client.gui.FontRenderer.getFont(FontRenderer.java:53) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.access$000(FontRenderer.java:38) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer$CharacterRenderer.accept(FontRenderer.java:289) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238344_a_(TextProcessing.java:14) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238340_a_(TextProcessing.java:122) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238339_a_(TextProcessing.java:83) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238346_c_(TextProcessing.java:79) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.renderStringAtPos(FontRenderer.java:171) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.func_238423_b_(FontRenderer.java:153) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.func_238411_a_(FontRenderer.java:126) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.renderString(FontRenderer.java:108) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.drawString(FontRenderer.java:67) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at com.magic.core.init.EventsHandler.renderGUI(EventsHandler.java:47) ~[main/:?] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_3_EventsHandler_renderGUI_Post.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-3.0.5-service.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) ~[eventbus-3.0.5-service.jar:?] {}
at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
at net.minecraftforge.client.gui.ForgeIngameGui.renderVignette(ForgeIngameGui.java:276) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
at net.minecraftforge.client.gui.ForgeIngameGui.renderIngameGui(ForgeIngameGui.java:128) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading}
at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:483) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1002) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271] {}
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271] {}
at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda[imath]launchService[/imath]0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {}
at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.client.gui.FontRenderer.getFont(FontRenderer.java:53) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.access$000(FontRenderer.java:38) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer$CharacterRenderer.accept(FontRenderer.java:289) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238344_a_(TextProcessing.java:14) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238340_a_(TextProcessing.java:122) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238339_a_(TextProcessing.java:83) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.util.text.TextProcessing.func_238346_c_(TextProcessing.java:79) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.renderStringAtPos(FontRenderer.java:171) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.func_238423_b_(FontRenderer.java:153) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.func_238411_a_(FontRenderer.java:126) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.renderString(FontRenderer.java:108) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.FontRenderer.drawString(FontRenderer.java:67) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at com..magic.core.init.EventsHandler.renderGUI(EventsHandler.java:47) ~[main/:?] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_3_EventsHandler_renderGUI_Post.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-3.0.5-service.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) ~[eventbus-3.0.5-service.jar:?] {}
at net.minecraftforge.client.gui.ForgeIngameGui.post(ForgeIngameGui.java:832) ~[forge:?] {re:classloading}
at net.minecraftforge.client.gui.ForgeIngameGui.renderVignette(ForgeIngameGui.java:276) ~[forge:?] {re:classloading}
at net.minecraftforge.client.gui.ForgeIngameGui.renderIngameGui(ForgeIngameGui.java:128) ~[forge:?] {re:classloading}
-- Affected level --
Details:
All players: 1 total; [ClientPlayerEntity['Dev'/23, l='ClientLevel', x=154.55, y=4.00, z=-108.05]]
Chunk stats: Client Chunk Cache: 169, 81
Level dimension: minecraft:eek:verworld
Level spawn location: World: (160,4,-112), Chunk: (at 0,0,0 in 10,-7; contains blocks 160,0,-112 to 175,255,-97), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Level time: 45849 game time, 27502 day time
Server brand: forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.world.ClientWorld.fillCrashReport(ClientWorld.java:465) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2086) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.run(Minecraft.java:633) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271] {}
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271] {}
at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda[imath]launchService[/imath]0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {}
at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}


-- System Details --
Details:
Minecraft Version: 1.16.4
Minecraft Version ID: 1.16.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_271, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 900314112 bytes (858 MB) / 1361575936 bytes (1298 MB) up to 2854223872 bytes (2722 MB)
CPUs: 2
JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
ModLauncher: 8.0.6+85+master.325de55
ModLauncher launch target: fmluserdevclient
ModLauncher naming: mcp
ModLauncher services:
/mixin-0.8.2.jar mixin PLUGINSERVICE
/eventbus-3.0.5-service.jar eventbus PLUGINSERVICE
/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-launcher.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-launcher.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE
/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-launcher.jar capability_inject_definalize PLUGINSERVICE
/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-launcher.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-launcher.jar fml TRANSFORMATIONSERVICE
FML: 35.1
Forge: net.minecraftforge:35.1.4
FML Language Providers:
[email protected]
minecraft@1
Mod List:
client-extra.jar |Minecraft |minecraft |1.16.4 |DONE |a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
main |Magic mod |magic |1.0 |DONE |NOSIGNATURE
forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.|Forge |forge |35.1.4 |DONE |NOSIGNATURE
Crash Report UUID: 324405dc-b25d-46fa-b73b-c8dc4faef86a
Launched Version: MOD_DEV
Backend library: LWJGL version 3.2.2 build 10
Backend API: GeForce GTX 1070/PCIe/SSE2 GL version 4.6.0 NVIDIA 445.87, NVIDIA Corporation
GL Caps: Using framebuffer using OpenGL 3.0
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'forge'
Type: Client (map_client.txt)
Graphics mode: fancy
Resource Packs:
Current Language: English (US)
CPU: 2x Intel(R) Celeron(R) CPU G3900 @ 2.80GHz
[08янв2021 23:07:32.043] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:printToSYSOUT:130]: #@!@# Game crashed! Crash report saved to: #@!@# E:\create_mods\mdk1\run\.\crash-reports\crash-2021-01-08_23.07.31-client.txt

P.S. В FontRenderer() передал null, может и из-за этого. Я не знаю как использовать тут шритфы, думал null, типо дефолтный, хотя может как раз крашет из-за этого. Так кста IDE предлагала по умолчанию
 
7,109
326
1,512
Минимизируй использование null
Без null выдает ошибку...

А вот если сделать вот так
Экземпляр FontRenderer нужно доставать из Minecraft
А миенно:


Java:
@SubscribeEvent
    public static void renderGUI(RenderGameOverlayEvent.Post event)
    {   
        Minecraft.getInstance().fontRenderer.drawString(event.getMatrixStack(), "Sasi", 10, 10, 8388479);
    }

То все работает... не знаю в чем логика, я посмотрел вроде методы одни и те же, ну не суть, думаю вопрос, можно считать решённым. Спасиб всем)

Вот для тех кто зашел в эту тему для поиска кода:

Отрисовка текста на экране:
@SubscribeEvent
    public static void renderGUI(RenderGameOverlayEvent.Post event)
    {   
        Minecraft.getInstance().fontRenderer.drawString(event.getMatrixStack(), "Sasi", 10, 10, 8388479);
    }

//Кста, цвет 8388479 светло-салатовый)


НУ может кому-то нужен именно евент на переключение предмета в руках:
@SubscribeEvent
    public static void IteminHand(LivingEquipmentChangeEvent event) {
        if(event.getSlot().equals(event.getSlot().OFFHAND) || event.getSlot().equals(event.getSlot().MAINHAND)) {
            //TO DO
        }
    }
 
7,109
326
1,512
Сверху