Lambda Posted November 23, 2016 Posted November 23, 2016 Hello! So I was updating my mod and I found that NonNullList no longer exists, is there any replacement ex: public static boolean isIInvEmpty(NonNullList<ItemStack> slots) { for (ItemStack stack : slots) { if (StackUtil.isValid(stack)) { return false; } } return true; } and how would I find functions, such as: func_190926_b because this doesnt exist for an itemstack anymore Thanks! Quote Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
Animefan8888 Posted November 23, 2016 Posted November 23, 2016 You could just use a List<ItemStack> and what was the purpose of func_190926_b? Quote 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.
Choonster Posted November 23, 2016 Posted November 23, 2016 Your post is confusing. Your title mentions 1.10 and your post says that you're updating, but you're referencing classes and methods ( NonNullList and func_190926_b ) that only exist in 1.11. Which version are you updating from and which version are you updating to? func_190926_b was renamed to isEmpty . You can use MCPBot to view the current and previous names of fields and methods. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Lambda Posted November 23, 2016 Author Posted November 23, 2016 Oops bit of a typo, my bad! Edit: Had the wrong null list imported, didn't even see that Quote Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
Recommended Posts
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.