Powered minecart - getting/setting the remaining fuel/power

Discussion in 'Plugin Development' started by tom1000o, Apr 19, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    tom1000o

    I have a simple question: how would i determine how much fuel is left in a powered minecart? any help would be great, currently searching the apidocs ^.^
     
  2. Offline

    caseif

    Get the itemstack in the furnace (I think there's a method for that), then get the burning time for that material (probably stored in a HashMap) and multiply it by the amount.
     
  3. Offline

    tom1000o

    thats the problem, it doesnt seem to have an inventory, or any method like that.

    here, look at this: http://jd.bukkit.org/dev/apidocs/

    oops, nevermind. theres no way to link to a specific point within the apidocs.

    maby if i cast it to a chestMinecart..? hmm.

    getting a classcastexception. poop.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Offline

    vemacs

  5. Offline

    The_Doctor_123

    vemacs
    Nice! This would've been great like 8 months ago!

    But seriously, I don't understand why people decide it's okay to bump these old threads.
     
Thread Status:
Not open for further replies.

Share This Page