Posted November 23, 20168 yr 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! Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
November 23, 20168 yr You could just use a List<ItemStack> and what was the purpose of func_190926_b? 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.
November 23, 20168 yr 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. 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.
November 23, 20168 yr Author Oops bit of a typo, my bad! Edit: Had the wrong null list imported, didn't even see that Relatively new to modding. Currently developing: https://github.com/LambdaXV/DynamicGenerators
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.