Jump to content

Confused since 1.15.2


DPaulModz

Recommended Posts

Hello, I have run into a small problem. The FORGE documentary points to this function in the Item class: setHasSubtypes(boolean) , ...but I can't find it in the new 1.15.2 FORGE, even though I have the newest mapping. Has the name changed, or has it been totally removed? Plz help.

Link to comment
Share on other sites

Hi 

 

Some general advice from a guru

https://gist.github.com/williewillus/353c872bcf1a6ace9921189f6100d09a

 

Quote

Cross-referencing, a quick how-to

Oh no! Method FooClass.BarMethod disappeared in 1.13/1.14! Where did it go? Follow these easy steps for a guaranteed 80% success rate!

  • Open a 1.12 workspace (this is why you use a separate workspace to update, by the way)
  • Browse to FooClass.BarMethod
  • Use your IDE's find usages tool to see where it was called from in vanilla
  • Pick a call site
  • Go to that same call site in 1.13/1.14
  • What does it call instead?
  • ???
  • Profit

 

But actually the specific answer to your question is that item sub-types don't exist any more.  Each sub-type is now a completely separate Item instance.

That page I linked to talks about it further.

 

If you want to see a working example of how Items with sub-types work now, you might find this useful

https://github.com/TheGreyGhost/MinecraftByExample

See mbe11

Cheers

  TGG

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
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

    • Not quite sure what's wrong but my game keeps crashing doesn't output a crash report either just latest and debug.     This is my latest.log [28Mar2023 00:06:52.662] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Wok_Johnson, --version, forge-43.2.8, --gameDir, D:\CurseForge\Instances\Instances\back at it again, --assetsDir, D:\CurseForge\Instances\Install\assets, --assetIndex, 1.19, --uuid, 4d2f6bc84cef43bd9cc0c047b4b85ed0, --accessToken, ????????, --clientId, Y2NmYjQwYjEtZDA1MS00NmU3LTkzMTQtZmQ0YWVhNWFiZTQx, --xuid, 2535456524352455, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 43.2.8, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [28Mar2023 00:06:52.666] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.3 by Microsoft; OS Windows 10 arch amd64 version 10.0 [28Mar2023 00:06:54.818] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/D:/CurseForge/Instances/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2391!/ Service=ModLauncher Env=CLIENT [28Mar2023 00:06:56.553] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file D:\CurseForge\Instances\Install\libraries\net\minecraftforge\fmlcore\1.19.2-43.2.8\fmlcore-1.19.2-43.2.8.jar is missing mods.toml file [28Mar2023 00:06:56.557] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file D:\CurseForge\Instances\Install\libraries\net\minecraftforge\javafmllanguage\1.19.2-43.2.8\javafmllanguage-1.19.2-43.2.8.jar is missing mods.toml file [28Mar2023 00:06:56.557] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file D:\CurseForge\Instances\Install\libraries\net\minecraftforge\lowcodelanguage\1.19.2-43.2.8\lowcodelanguage-1.19.2-43.2.8.jar is missing mods.toml file [28Mar2023 00:06:56.561] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file D:\CurseForge\Instances\Install\libraries\net\minecraftforge\mclanguage\1.19.2-43.2.8\mclanguage-1.19.2-43.2.8.jar is missing mods.toml file [28Mar2023 00:06:56.703] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: playeranimator. Using Mod File: D:\CurseForge\Instances\Instances\back at it again\mods\player-animation-lib-forge-1.0.2.jar [28Mar2023 00:06:56.703] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: flywheel. Using Mod File: D:\CurseForge\Instances\Instances\back at it again\mods\flywheel-forge-1.19.2-0.6.8.a.jar [28Mar2023 00:06:56.703] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 12 dependencies adding them to mods collection [28Mar2023 00:07:00.951] [main/INFO] [mixin/]: Compatibility level set to JAVA_17 [28Mar2023 00:07:01.075] [main/ERROR] [mixin/]: Mixin config enderitemod-common.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.077] [main/ERROR] [mixin/]: Mixin config enderitemod.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.121] [main/ERROR] [mixin/]: Mixin config mixins.oculus.compat.sodium.json does not specify "minVersion" property [28Mar2023 00:07:01.275] [main/ERROR] [mixin/]: Mixin config rei-jei-internals-workaround.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.305] [main/ERROR] [mixin/]: Mixin config entity_texture_features-forge.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.306] [main/ERROR] [mixin/]: Mixin config entity_texture_features-common.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.395] [main/ERROR] [mixin/]: Mixin config rei.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.400] [main/ERROR] [mixin/]: Mixin config rottencreatures-common.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.401] [main/ERROR] [mixin/]: Mixin config rottencreatures.mixins.json does not specify "minVersion" property [28Mar2023 00:07:01.477] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.aizistral.nochatreports.MixinConnector] [28Mar2023 00:07:01.477] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, forge-43.2.8, --gameDir, D:\CurseForge\Instances\Instances\back at it again, --assetsDir, D:\CurseForge\Instances\Install\assets, --uuid, 4d2f6bc84cef43bd9cc0c047b4b85ed0, --username, Wok_Johnson, --assetIndex, 1.19, --accessToken, ????????, --clientId, Y2NmYjQwYjEtZDA1MS00NmU3LTkzMTQtZmQ0YWVhNWFiZTQx, --xuid, 2535456524352455, --userType, msa, --versionType, release, --width, 1024, --height, 768] [28Mar2023 00:07:01.527] [main/INFO] [Rubidium/]: Loaded configuration file for Rubidium: 30 options available, 0 override(s) found [28Mar2023 00:07:01.582] [main/WARN] [mixin/]: Reference map 'enderitemod-forge-refmap.json' for enderitemod.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:01.614] [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 [28Mar2023 00:07:01.616] [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 [28Mar2023 00:07:01.640] [main/WARN] [mixin/]: Reference map 'alloyed.refmap.json' for alloyed.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:01.781] [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 [28Mar2023 00:07:01.838] [main/WARN] [CanaryConfig/]: Option 'mixin.world.block_entity_ticking.world_border' requires 'mixin.util.world_border_listener=true' but found 'false'. Setting 'mixin.world.block_entity_ticking.world_border=false'. [28Mar2023 00:07:01.839] [main/INFO] [Canary/]: Loaded configuration file for Canary: 106 options available, 1 override(s) found [28Mar2023 00:07:01.876] [main/WARN] [mixin/]: Reference map 'naturalist-forge-forge-refmap.json' for naturalist.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:01.882] [main/WARN] [mixin/]: Reference map 'insanelib.refmap.json' for insanelib.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:01.993] [main/WARN] [mixin/]: Reference map 'dummmmmmy-forge-refmap.json' for dummmmmmy.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.123] [main/WARN] [mixin/]: Reference map 'xlpackets.refmap.json' for xlpackets.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.174] [main/WARN] [mixin/]: Reference map 'capes-forge-refmap.json' for capes-forge.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.180] [main/WARN] [mixin/]: Reference map 'everycomp-common-refmap.json' for everycomp-common.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.184] [main/WARN] [mixin/]: Reference map 'everycomp.refmap.json' for everycomp.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.199] [main/WARN] [mixin/]: Reference map 'simplyswords-common-refmap.json' for simplyswords-common.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.201] [main/WARN] [mixin/]: Reference map 'simplyswords-forge-refmap.json' for simplyswords.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.223] [main/WARN] [mixin/]: Reference map 'rottencreatures-forge-refmap.json' for rottencreatures.mixins.json could not be read. If this is a development environment you can ignore this message [28Mar2023 00:07:02.309] [main/INFO] [Essential Logger - Plugin/]: Starting Essential v1.2.0.13 (#5c9691d52) [stable] [28Mar2023 00:07:02.898] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/item/ItemProperties$static$1 (java.lang.ClassNotFoundException: net.minecraft.client.renderer.item.ItemProperties$static$1) [28Mar2023 00:07:02.898] [main/WARN] [mixin/]: @Mixin target net.minecraft.client.renderer.item.ItemProperties$static$1 was not found infernal-expansion.mixins.json:client.MixinItemProperties [28Mar2023 00:07:03.147] [main/INFO] [net.minecraftforge.coremod.CoreMod.uteamcore/COREMODLOG]: Injected ASMUContainerMenuHook call into ServerPlayer#initMenu [28Mar2023 00:07:03.540] [main/WARN] [mixin/]: Error loading class: dev/latvian/mods/kubejs/recipe/RecipesEventJS (java.lang.ClassNotFoundException: dev.latvian.mods.kubejs.recipe.RecipesEventJS) [28Mar2023 00:07:03.540] [main/WARN] [mixin/]: @Mixin target dev.latvian.mods.kubejs.recipe.RecipesEventJS was not found sliceanddice.mixins.json:RecipeEventJSMixin [28Mar2023 00:07:03.577] [main/WARN] [mixin/]: Error loading class: mezz/jei/common/plugins/vanilla/InventoryEffectRendererGuiHandler (java.lang.ClassNotFoundException: mezz.jei.common.plugins.vanilla.InventoryEffectRendererGuiHandler) [28Mar2023 00:07:03.578] [main/WARN] [mixin/]: @Mixin target mezz.jei.common.plugins.vanilla.InventoryEffectRendererGuiHandler was not found stylisheffects.common.mixins.json:integration.jei.InventoryEffectRendererGuiHandlerMixin [28Mar2023 00:07:03.678] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [28Mar2023 00:07:03.684] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [28Mar2023 00:07:03.820] [main/WARN] [Canary/]: Force-disabling mixin 'world.player_chunk_tick.ChunkMapMixin' as rule 'mixin.world.player_chunk_tick' (added by mods [pluto]) disables it and children [28Mar2023 00:07:04.560] [main/INFO] [memoryleakfix/]: [MemoryLeakFix] Will be applying 5 memory leak fixes! [28Mar2023 00:07:04.560] [main/INFO] [memoryleakfix/]: [MemoryLeakFix] Currently enabled memory leak fixes: [targetEntityLeak, readResourcesLeak, entityMemoriesLeak, biomeTemperatureLeak, hugeScreenshotLeak]        
    • I got almost every issue ironed out myself, but this one I can't figure out. I am requesting some assistance so I can have the server do daily reboots in my server manager. This is my first modpack and serverpack I've made myself. If you see any other errors, or have tips that would be great! It's getting stuck at [Server thread/DEBUG] [net.minecraftforge.fml.config.ConfigTracker/CONFIG]: Unloading configs type SERVER. I've tried deleting the serverconfig file under the world folder, but it did not help. So far I only have 1 dimension created, and it's the overworld. Here is the really log debug log if you want to go through it. (12000 lines )
    • I tried what you suggested and used the method they used with the ender eye and after a bit of tuning, it worked. Honestly, I already tried using exactly this method before, but the game kept crashing because of class cast exception, so I gave up on that. But still, thank you so much! Regarding the same mod, I have one more question. Is there any way (under the same conditions) to find out boundaries of structures or whether the player is in them?
    • 1) Use English on these Forums 2) Remove Optifine, even if you think you need it, you don't. 3) When you remove mods, provide new log files so we can see the issues. 4) Don't spam bump your posts.
  • Topics

×
×
  • Create New...

Important Information

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