Hi - I'm been trying for a while now. All the resources I can find say to get the call getRegistryManager() on the world object. But for the life of me I can't get a reference to the world object. I've tried this on server side and client side.
Both of the following lines are supposed to work, but world is null and getNetworkHandler() returns null as well. Once I have a proper wrapperLookup I can use that to get a RegistryEntryList of Enchantments.
Any suggestions?
RegistryWrapper.WrapperLookup wrapperLookup = MinecraftClient.getInstance().getNetworkHandler().getRegistryManager();
RegistryWrapper.WrapperLookup wrapperLookup = MinecraftClient.getInstance().world.getRegistryManager();
BTW: Is there any reason that there are so few tags to select from for these posts? Seems a bit limited.