Posted August 10, 201510 yr does anyone know how to check if an itemstack is a spicific item? for example: if (!this.mergeItemStack(itemstack1, 0, 1, true && itemstack1 == Items.beef)) {}
August 10, 201510 yr stack.getItem().equals(Item.beef) or something like that. Long time Bukkit & Forge Programmer Happy to try and help
August 12, 201510 yr Items are singletons, so you don't need to use equals to check if they are the same, == will do just fine. Same for blocks. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
August 12, 201510 yr doesn't hurt though and it creates the habit for when it does. Long time Bukkit & Forge Programmer Happy to try and help
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.