September 25, 201312 yr par0ItemStack.getItemDamage() ? 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.
September 26, 201312 yr It's an integer. Do whatever you want to with it. 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.
September 26, 201312 yr Author I seriously can't figure this out could someone please provide a little bit more detailed help?
September 26, 201312 yr Dude, it's math. I can't help you because I don't know what you need this value for. 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.
September 26, 201312 yr Author http://github.com/alix-the-alicorn/carbon-mod I'm using it to get the fuels for my custom furnace "CompressionChamber"
September 26, 201312 yr Ok great. Take an integer. Perform math on it. Return the integer. 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.
September 26, 201312 yr Author well how would I return a damaged item? What syntax? EX: ID:DAMAGE or ID/DAMAGE or SOMETHINGELSE
September 26, 201312 yr well how would I return a damaged item? What syntax? EX: ID:DAMAGE or ID/DAMAGE or SOMETHINGELSE What do you mean return a damaged item, the function: public static int getItemBurnTime returns an integer. 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.
September 26, 201312 yr Author Is an Item id EX: 1:1 or 1/1 or 1 1 with the first one being ID and the second one being DAMAGE
September 26, 201312 yr Author I should ask mention that I should have wrote not how do I return a damage value for the question, but how do I return a damaged item ID
September 26, 201312 yr I know what you mean by "a damaged item" that is not causing my inability to help you. My inability to help you stems from "return a" when the function you are working with does not return an item. Of any kind. In any case, damaging an item: par0ItemStack.setItemDamage(value) If you want to change the item ID, you're going to need to make a new ItemStack(item) 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.
September 27, 201312 yr Author I'm Still confuzzled. Could someone provide example code and explain it in some way? Thanks
September 27, 201311 yr Author So basically, since all I need is for my fuel burning return an int of how long it burns for, I would need to make a method to return an integer based on an ItemStack? How would I check an itemstack? I've tried something like if par0ItemStack = new ItemStack par0ItemStack(Items.materialOne, 1, 1){return 0;} but no luck
September 28, 201311 yr itemMaterial doesn't exist, unless you made a new class. Did you mean EnumToolMaterial? If so, that doesn't store a damage value, though it does have 'maxUses'. Your 'Items.materialOne' is just another Item, by the looks of it. No different than using 'energizedDust' as far as your furnace is concerned. What exactly are you trying to accomplish? Do you want to damage the fuel itemstack? Why? You are already returning a burn time, just consume the item and let the furnace burn. You can make it so the furnace doesn't use power if there is no item inside to smelt if that's what you want. If you really want to have 'damaged' fuel stacks, like a half-used battery, you could return a damaged itemstack from the 'getStackInSlot' and 'getStackInSlotOnClosing' methods, but keep in mind damageable items cannot be stacked. http://i.imgur.com/NdrFdld.png[/img]
September 29, 201311 yr Author No, in a commit I havent pushed yet, I have a metadata based Item called materialOne that has 3 subtypes, 0, 1, 2. I want only subtype 1 to be fuel.
September 29, 201311 yr Author what re the method names? I'm using latest forge, so the version of mcp that comes with that.
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.