Jump to content

MC 1.14.4 Getting certain values from existing blocks


winnetrie

Recommended Posts

I'm updating my mod to 1.14.4 (coming from 1.12.2) and a lot have changed.

Some of my blocks are relying on some "properties" from other blocks. For example resistance, hardness, mapcolor.

Are there any getters for those, or how would i retrieve those values?

An example for that is i have , in addition to the vanilla bricks, added 16 more (colored) bricks. They all need to have the same properties except the mapcolor as the vanilla bricks.

I can ofcourse add those properties at instantiation, but since they all are "the same" i want it to be inside the class. This way it saves me alot of work.

I have done this for 1.12.2. Now it doesn't work like that. So i wonder if there are other ways now.

Link to comment
Share on other sites

11 hours ago, winnetrie said:

I can ofcourse add those properties at instantiation, but since they all are "the same" i want it to be inside the class.

Create class.
public SomeBlock(Properties properties) {

  super(properties.hardnessAndResistance(hardness, resistance));

}

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

22 hours ago, Animefan8888 said:

Create class.
public SomeBlock(Properties properties) {

  super(properties.hardnessAndResistance(hardness, resistance));

}

Oh so i set them all in the super? I really like this "properties" thing

EDIT: How do i now "get" the hardness and resistance from an other block?

Edited by winnetrie
Link to comment
Share on other sites

2 hours ago, winnetrie said:

I really like this "properties" thing

I don't. While that particular mod never got a 1.12 update (and a 1.14 update is as unlikely) the fact that those fields are locked down pretty hard is annoying for those of us who actually want shovels to freaking matter.

2 hours ago, winnetrie said:

How do i now "get" the hardness and resistance from an other block?

Blocks.IRON_ORE.getDefaultState().getBlockHardness(null, null)

As dirty as it seems passing null there, virtually no blocks should rely on it. No vanilla ones do.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

20 minutes ago, Draco18s said:

While that particular mod never got a 1.12 update (and a 1.14 update is as unlikely) the fact that those fields are locked down pretty hard is annoying for those of us who actually want shovels to freaking matter.

Why not just use a constant? They can't change anymore. Now you have to override their registry.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

23 minutes ago, Animefan8888 said:

Now you have to override their registry.

Because this is less mod compatible. Two mods overriding the same block, someone wins and someone loses.

Even if those two overrides are for completely unrelated things.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

11 minutes ago, Draco18s said:

Because this is less mod compatible. Two mods overriding the same block, someone wins and someone loses.

Even if those two overrides are for completely unrelated things.

This is true so best bet is to stay away from overrides and use events.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

10 hours ago, Draco18s said:

I don't. While that particular mod never got a 1.12 update (and a 1.14 update is as unlikely) the fact that those fields are locked down pretty hard is annoying for those of us who actually want shovels to freaking matter.

Blocks.IRON_ORE.getDefaultState().getBlockHardness(null, null)

As dirty as it seems passing null there, virtually no blocks should rely on it. No vanilla ones do.

Ah, i didn't know i could parse in a null. I never understood why there isn't just a simple method for it. Just 1 without parameters. Like other getters.

However i can set those values manually and perhaps this is more common to do, but how unlikely it will be, in future updates it's always posseble those values changes.

In this case if the blockhardness of bricks ever changes , my bricks their hardness will Always be the same. It is also less typing. I could maybe just make a constant for the value, so if it ever changes i just have to change the constant's value

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Well, I wanted to play Dragon Block C and suddenly this appeared when I tried to use Forge 1.7.10, now I don't know what I can do, I tried searching on YouTube or Google and nothing so I decided to come here to try to solve it.
    • my game keeps crashing when i make a world😿 https://pastebin.com/amA9NkCr
    • [00:02:38] [main/ERROR] [mixin/]: Mixin config firstperson.mixins.json does not specify "minVersion" property [00:02:38] [main/ERROR] [mixin/]: Mixin config yacl.mixins.json does not specify "minVersion" property What can I do to fix it?
    • i cant find what mod causes error text from "run" file, forge 1.20.1 2024-06-15 01:26:53,682 main WARN Advanced terminal features are not available in this environment [01:26:53] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 47.3.1, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [01:26:53] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 22.0.1 by Oracle Corporation; OS Windows 10 arch amd64 version 10.0 [01:26:54] [main/INFO] [ne.mi.fm.lo.ImmediateWindowHandler/]: ImmediateWindowProvider not loading because launch target is forgeserver [01:26:54] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/Admin/Desktop/RBA%20mine/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2365!/ Service=ModLauncher Env=SERVER [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\fmlcore\1.20.1-47.3.1\fmlcore-1.20.1-47.3.1.jar is missing mods.toml file [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\javafmllanguage\1.20.1-47.3.1\javafmllanguage-1.20.1-47.3.1.jar is missing mods.toml file [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\lowcodelanguage\1.20.1-47.3.1\lowcodelanguage-1.20.1-47.3.1.jar is missing mods.toml file [01:26:55] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\Admin\Desktop\RBA mine\libraries\net\minecraftforge\mclanguage\1.20.1-47.3.1\mclanguage-1.20.1-47.3.1.jar is missing mods.toml file [01:26:56] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [01:26:56] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: C:\Users\Admin\Desktop\RBA mine\mods\resourcefullib-forge-1.20.1-2.1.14.jar [01:26:56] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 38 dependencies adding them to mods collection [01:26:56] [main/INFO] [or.gr.gm.ma.MappingsProvider/]: Starting runtime mappings setup... [01:26:56] [main/INFO] [or.gr.gm.in.lo.ModLocatorInjector/]: Injecting ScriptModLocator candidates... [01:26:56] [main/INFO] [or.gr.gm.sc.ScriptModLocator/]: Injected Jimfs file system [01:26:56] [main/INFO] [or.gr.gm.sc.ScriptModLocator/]: Skipped loading script mods from directory C:\Users\Admin\Desktop\RBA mine\mods\scripts as it did not exist. [01:26:56] [main/INFO] [or.gr.gm.in.lo.ModLocatorInjector/]: Injected ScriptModLocator mod candidates. Found 0 valid mod candidates and 0 broken mod files. [01:26:58] [GML Mappings Thread/INFO] [or.gr.gm.ma.MappingsProvider/]: Loaded runtime mappings in 1627ms [01:26:58] [GML Mappings Thread/INFO] [or.gr.gm.ma.MappingsProvider/]: Finished runtime mappings setup. [01:26:58] [main/ERROR] [mixin/]: Mixin config dynamiclightsreforged.mixins.json does not specify "minVersion" property [01:26:58] [main/INFO] [mixin/]: Compatibility level set to JAVA_17 [01:26:58] [main/ERROR] [mixin/]: Mixin config mixins.oculus.compat.sodium.json does not specify "minVersion" property [01:26:58] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [ca.spottedleaf.starlight.mixin.MixinConnector] [01:26:58] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeserver' with arguments [] [01:26:58] [main/WARN] [mixin/]: Reference map 'nerb-forge-refmap.json' for nerb.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix 5.9.2+mc1.20.1: 70 options available, 1 override(s) found [01:26:58] [main/WARN] [ModernFix/]: Option 'mixin.perf.thread_priorities' overriden (by mods [smoothboot]) to 'false' [01:26:58] [main/INFO] [ModernFix/]: Applying Nashorn fix [01:26:58] [main/INFO] [ModernFix/]: Applied Forge config corruption patch [01:26:58] [main/INFO] [Embeddium/]: Loaded configuration file for Embeddium: 41 options available, 3 override(s) found [01:26:58] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras_forge.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/INFO] [Rubidium/Embeddium Extra/]: Loaded configuration file for Sodium Extra: 34 options available, 0 override(s) found [01:26:58] [main/WARN] [mixin/]: Reference map 'sullysmod.refmap.json' for sullysmod.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/WARN] [mixin/]: Reference map 'moyai-forge-refmap.json' for moyai.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:58] [main/WARN] [mixin/]: Reference map '${refmap_target}refmap.json' for corgilib.forge.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:59] [main/INFO] [Canary/]: Loaded configuration file for Canary: 123 options available, 0 override(s) found [01:26:59] [main/INFO] [Puzzles Lib/]: Loading 164 mods: advancementplaques 1.4.10 aiimprovements 0.5.2 ambientsounds 5.2.24 animal_feeding_trough 1.0.3+1.20.1-forge another_furniture 1.20.1-3.0.1 appleskin 2.5.1+mc1.20.1 aquaculture 2.5.0 architectury 9.1.12 attributefix 21.0.3 bagus_lib 1.20.1-4.0.3 balm 7.1.4 barteringstation 8.0.0 betteranimationscollection 8.0.0 betterarcheology 1.0.2 betterdeserttemples 1.20-Forge-3.0.3 betterdungeons 1.20-Forge-4.0.3 betterendisland 1.20-Forge-2.0.4 betterfortresses 1.20-Forge-2.0.5 betterjungletemples 1.20-Forge-2.0.4 bettermineshafts 1.20-Forge-4.0.4 betteroceanmonuments 1.20-Forge-3.0.3 betterstrongholds 1.20-Forge-4.0.3 betterthirdperson 1.9.0 bettervillage 3.1.0 biomesoplenty 18.0.0.592 blueprint 7.0.0 bookshelf 20.1.6 bountiful 6.0.3+1.20.1 canary 0.2.7 cataclysm 1.0 chat_heads 0.10.22 chococraft 0.9.10 citadel 2.4.9 collective 7.3 commongroovylibrary 0.3.3 connectedglass 1.1.8 constructionwand 1.20.1-2.11 corgilib 4.0.0.4 corpse 1.20.1-1.0.5 creativecore 2.11.8 creeperoverhaul 3.0.1 croptopia 2.3.2 crystals_overhauled 1.6.0 dungeoncrawl 2.3.14 dynamiclights 1.20.1.1 dynamiclightsreforged 1.20.1_v1.6.0 easyanvils 8.0.1 easymagic 8.0.1 eatinganimation 5.0.0 embeddium 0.2.7+mc1.20.1 enchantinginfuser 8.0.2 enchdesc 17.0.8 endermanoverhaul 1.0.1 endreborn 1.0.5 ends_delight 1.0.1 enlightened_end 5.0.10 entityculling 1.6.2 everycomp 1.20-2.6.16 extendedbonemeal 3.1 fallingleaves 2.1.0 farmersdelight 1.20.1-1.2.3 ferritecore 6.0.1 forge 47.3.1 galosphere 1.20.1-1.3.2 geckolib 4.2.4 geophilic 2.0.0-mc1.20u1.20.1 geore 2.4.2 gml 4.0.9 harvestwithease 7.1.0.0 heartstone 1.20-1.3.0 herdmentality 12.0.2 iceberg 1.1.16 incendium 5.3.3 insanelib 1.12.1 iris 1.6.9 jade 11.6.3 jei 15.2.0.27 jeresources 1.4.0.238 kambrik 6.1.1+1.20.1 kiwi 11.1.1 kotlinforforge 4.5.0 l2library 2.4.16 legendarytooltips 1.4.5 libraryferret 4.0.0 minecraft 1.20.1 mixinextras 0.2.0-rc.3 mixinsquared 0.1.1 modernfix 5.9.2+mc1.20.1 monsterplus 1.0 moonlight 1.20-2.8.57 moredragoneggs 4.0 moremobvariants 1.2.2 mousetweaks 2.25 moyai 1.20-2.1.2 multimine 1.20.1.2 namepain 1.5.0 nerb 0.3 netheroverhaul 1.3.0 netherportalfix 13.0.0 nethersdelight 1.20.1-4.0 nightconfigfixes 8.0.0 nourished_nether 0.2.5 nullscape 1.2.3 obscure_api 15 oceansdelight 1.0.2-1.20 oculus 1.6.9 oresabovediamonds 10.0.1b passablefoliage 8.2.0 phenomena 2.3.2b-1.20.1 placebo 8.3.7 potionbundles 1.7 potionofbees 3.0.0.0 potionsmaster 0.6.0 prism 1.0.5 progressivebosses 3.9.4-mc1.20.1 puzzlesaccessapi 8.0.7 puzzleslib 8.1.8 queen_bee 3.1.3 reeses_sodium_options 1.0.4+mc1.20.1 regions_unexplored 0.5.3 resourcefulconfig 2.1.0 resourcefullib 2.1.14 rubidium 0.7.1 rubidium_extra 0.5.3+mc1.20.1-build.106 rubidium_extras 1.20.1_v1.4.3 seeds 1.1.5 shieldexp 1.1.6a skinlayers3d 1.5.4 smarterfarmers 1.20-1.7.3 smoothboot 0.0.3 sophisticatedbackpacks 3.18.65.935 sophisticatedcore 0.5.100.457 sophisticatedstorage 0.8.55.626 spark 1.10.53 starlight 1.1.2+forge.1cda73c storagedrawers 12.0.2 structory 1.3.3 sullysmod 3.0.1-beta supermartijn642configlib 1.1.8 supermartijn642corelib 1.1.15 supplementaries 1.20-2.6.19 terrablender 3.0.0.169 terralith 2.4.8 tflostblocks 1.20.1-1.3.2 tipsmod 12.0.4 toastcontrol 8.0.3 toms_storage 1.6.5 torchbowmod 1.0.0 torchhit 6.0.2.0 trashcans 1.0.18b treechop 0.18.3 twilightdelight 2.0.3 twilightforest 4.3.1860 undergarden 0.8.9 underground_jungle 2.1-forge underground_villages 2.0.0 villagersellanimals 1.2.1 visuality 2.0.2 voidtotem 3.0.1 walljumping 1.9.1 waystones 14.0.2 yeetusexperimentus 2.3.1-build.6+mc1.20.1 yungsapi 1.20-Forge-4.0.2 yungsextras 1.20-Forge-4.0.3 [01:26:59] [main/WARN] [mixin/]: Reference map 'heartstone-common-refmap.json' for heartstone-common.mixins.json could not be read. If this is a development environment you can ignore this message [01:26:59] [main/INFO] [ne.mi.co.Co.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [01:26:59] [main/INFO] [ne.mi.co.Co.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/components/ChatComponent (java.lang.ClassNotFoundException: net.minecraft.client.gui.components.ChatComponent) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.gui.components.ChatComponent was not found placebo.mixins.json:ChatComponentMixin [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/resources/SkinManager (java.lang.ClassNotFoundException: net.minecraft.client.resources.SkinManager) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.resources.SkinManager was not found modernfix-common.mixins.json:perf.cache_profile_texture_url.SkinManagerMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/Minecraft (java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.Minecraft was not found modernfix-common.mixins.json:bugfix.world_leaks.MinecraftMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screens/worldselection/WorldSelectionList$WorldListEntry for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/screens/worldselection/WorldSelectionList$WorldListEntry (java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/worldselection/WorldSelectionList$WorldListEntry for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.gui.screens.worldselection.WorldSelectionList$WorldListEntry was not found modernfix-common.mixins.json:bugfix.world_screen_skipped.WorldSelectionListMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class com/mojang/blaze3d/vertex/BufferBuilder for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: com/mojang/blaze3d/vertex/BufferBuilder (java.lang.RuntimeException: Attempted to load class com/mojang/blaze3d/vertex/BufferBuilder for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target com.mojang.blaze3d.vertex.BufferBuilder was not found modernfix-common.mixins.json:bugfix.buffer_builder_leak.BufferBuilderMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screens/worldselection/CreateWorldScreen for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/gui/screens/worldselection/CreateWorldScreen (java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/worldselection/CreateWorldScreen for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.gui.screens.worldselection.CreateWorldScreen was not found modernfix-forge.mixins.json:bugfix.extra_experimental_screen.CreateWorldScreenMixin [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: vectorwing/farmersdelight/client/renderer/CanvasSignRenderer (java.lang.RuntimeException: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER) [01:26:59] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/renderer/Sheets for invalid dist DEDICATED_SERVER [01:26:59] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/Sheets (java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/Sheets for invalid dist DEDICATED_SERVER) [01:26:59] [main/WARN] [mixin/]: u/Mixin target net.minecraft.client.renderer.Sheets was not found mixin.undergroundjungle.json:SheetsMixin [01:27:00] [main/ERROR] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER [01:27:00] [main/WARN] [mixin/]: Error loading class: vectorwing/farmersdelight/client/renderer/CanvasSignRenderer (java.lang.RuntimeException: Attempted to load class vectorwing/farmersdelight/client/renderer/CanvasSignRenderer for invalid dist DEDICATED_SERVER) [01:27:00] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/blockentity/SignRenderer (java.lang.ClassNotFoundException: net.minecraft.client.renderer.blockentity.SignRenderer) [01:27:00] [main/ERROR] [mixin/]: Cannot invoke "org.spongepowered.asm.mixin.transformer.ClassInfo.isMixin()" because "superClass" is null java.lang.NullPointerException: Cannot invoke "org.spongepowered.asm.mixin.transformer.ClassInfo.isMixin()" because "superClass" is null at org.spongepowered.asm.mixin.transformer.MixinInfo$SubType$Standard.validate(MixinInfo.java:581) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validate(MixinInfo.java:327) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinInfo.validate(MixinInfo.java:913) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:801) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:567) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {} at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar%2355!/:10.0.9+10.0.9+main.dcd20f30] {} at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?] {} at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {} at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?] {} at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {} at java.lang.ClassLoader.loadClass(ClassLoader.java:637) ~[?:?] {} at java.lang.Class.forName(Class.java:620) ~[?:?] {} at java.lang.Class.forName(Class.java:595) ~[?:?] {} at net.minecraftforge.fml.loading.ImmediateWindowHandler$DummyProvider.lambda$updateModuleReads$1(ImmediateWindowHandler.java:145) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at java.util.Optional.map(Optional.java:260) ~[?:?] {} at net.minecraftforge.fml.loading.ImmediateWindowHandler$DummyProvider.updateModuleReads(ImmediateWindowHandler.java:145) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at net.minecraftforge.fml.loading.ImmediateWindowHandler.acceptGameLayer(ImmediateWindowHandler.java:71) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at net.minecraftforge.fml.loading.FMLLoader.beforeStart(FMLLoader.java:207) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:1.0] {} at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.launchService(CommonLaunchHandler.java:92) ~[fmlloader-1.20.1-47.3.1.jar%2369!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2355!/:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {} [01:27:00] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.2.0-rc.3). [01:27:01] [main/INFO] [minecraft/Bootstrap]: ModernFix reached bootstrap stage (9.259 s after launch) Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:108) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:78) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:103) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$makeService$0(CommonServerLaunchHandler.java:27) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ... 7 more Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) at TRANSFORMER/[email protected]/net.minecraftforge.registries.GameData.<clinit>(GameData.java:81) at TRANSFORMER/[email protected]/net.minecraft.core.registries.BuiltInRegistries.forge(BuiltInRegistries.java:429) at TRANSFORMER/[email protected]/net.minecraft.core.registries.BuiltInRegistries.forge(BuiltInRegistries.java:409) at TRANSFORMER/[email protected]/net.minecraft.core.registries.BuiltInRegistries.<clinit>(BuiltInRegistries.java:121) at TRANSFORMER/[email protected]/net.minecraft.server.Bootstrap.m_135870_(Bootstrap.java:43) at TRANSFORMER/[email protected]/net.minecraft.server.Main.main(Main.java:121) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ... 12 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector skipMultipleRemap(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; in modernfix-forge.mixins.json:perf.fast_registry_validation.ForgeRegistryMixin failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap modernfix.refmap.json at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1362) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1051) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:400) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ... 32 more
    • file:///C:/Users/Danie/Downloads/Capture.JPG I keep experiencing this error, does anyone know how to fix it here is the report: file:///C:/Users/Danie/AppData/Roaming/.minecraft/crash-reports/Bug_report1.txt
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.