Updating an inventory

Discussion in 'Plugin Development' started by Crash, Jun 8, 2011.

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

    Crash

    I need a way to update an inventory.
    Is there any way I can do this ? (this isn't a player inventory it will be either a workbench, furnace, or player craft table inventory)
    e.g.
    Code:
    Inventory inv = ...;//I get the inventory here
    ...// This is where I change things
    inv.something // Now I need it to update
    
     
  2. Offline

    Shamebot

    Can't you just update the BlockState?
     
  3. Offline

    Acrobot

    Why do you want to update block's inventory? It refreshes as soon as you add any item to it.
     
  4. Offline

    Crash

    Tried that it didn't do anything.
    I did fix this though I just sent a setslot packet.
    @Acrobot : I was setting a slot to null for the result in a workbench but it still showed up as the item instead of nothing.
     
  5. Offline

    Acrobot

    @Crash
    That's not how it should be done, you should probably look into changing recepies.
     
  6. Offline

    Crash

    Is it possible to remove recipes with the CraftingManager ?
     
  7. Offline

    Archelaus

    updateInventory()
     
  8. Offline

    Crash

    It's not a player inventory
     
Thread Status:
Not open for further replies.

Share This Page