Posted August 24, 20205 yr Hey. I'm new in 1.15.2 and i just want to find an item by its name. In 1.12.2 i did it like this: Item.REGISTRY.getObject(new ResourceLocation(unlocalizedName)). So, how can i do the same in 1.15.2 ?
August 24, 20205 yr Well, for one, the unlocalized name and the registry name are not the same thing. For two, I don't believe that the method is getObject any more, but you'd have to look at what methods the Registry class exposes and pick one that appears to do what you want (because it probably does). 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.
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.