Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Guest tavisco

Applied Energistics 2 and OC

Question

Guest tavisco
Hello!

 

I'm trying to create a program that see I have a determinated item in my ME Chest.

I've read this (https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/scala/li/cil/oc/integration/appeng/DriverController.scala) and I've found a method that can helps (getItensInNetwork, at line 66) but I can't manage to actually see the items, and I'm not sure if this command will only get the items of the ME Chest (That's what I want) or the itens on the other blocks and components.  :unsure:

The computer is properly connected with an Adaptor to the ME Controller

I'll be glad if someone could help me.

 

Thanks!

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

component.me_controller.getItemsInNetwork() works as expected for me and returns a table of tables, each representing an item type in the ME network. This will get all items in the ME network, however. There is no way to only get the contents of an ME chest with the existing methods because they do not implement IInventory (so they'd need an extra driver).

Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.