Skip to content

API Functions

John O'Connell edited this page Sep 2, 2019 · 4 revisions

Blocks

Placing an adapter next to a Thaumcraft block that can contain aspects will add a component to the computer's component list named for the block.

Component methods

  • getAspects() Returns a map of aspects in the block
  • getAspectNames() Return an array of names of aspects in a block
  • getAspectCount(aspect) Returns the number of a specified aspect in the block

Machines

Placing an adapter next to Thaumcraft machines with supported functions will add a component to the computer's component list for the machine.

Dioptra

  • getFlux() Returns the flux value of the current chunk
  • getVis() Returns the vis value of the current chunk

Items

OpenComputers Inventory Controller Upgrades allow adapters to read the contents of adjacent inventories.
Thaumic Computers extends the information returned about an item by adding its list of aspects to calls that return ItemStack data.


Seals

Get Methods

  • getArea() Returns the seal effect area in x,y,z block radius from seal
  • getColor() Returns the seal color name
  • getFilter() Returns a mapping of the seal filter attributes
  • getFilterSize() Returns number of slots in the seal filter
  • getFilterSlot(slot number) Returns the item name (e.g minecraft:stone) of the item in the specified filter slot
  • getFilterSlotSize(slot number) Returns the stack size of the slot of the filter. Only meaningful for seals with slot limiters
  • getForbiddenTags() Returns array of tags that golems must not have to fulfill the seal orders
  • getHasStackSizeLimiters() Returns true if the seal filter supports stack sizes in filter slots
  • getIsBlacklist() Returns true if seal filter is in blacklist mode, false if whitelist
  • getIsLocked() Returns true if seal is set to locked - locking makes only golem's owned by seal's owner obey that seal
  • getIsRedstoneSensitive() Returns true if seal can be disabled by redstone signal
  • getIsStoppedByRedstone() Returns true if seal is currently disabled by redstone signal
  • getOwner() Returns the login name of the owner of the seal
  • getPriority() Returns the integer priority value for the seal's tasks
  • getProperties() Returns a mapping of all the seal's properties
  • getRequiredTags() Returns array of tags that golems must have to fulfill the seal orders
  • getType() Returns the localized name of the seal

Set Methods

  • setArea(x,y,z) Specify the seal area of effect in blocks radial from the seal
  • setColor(color) Specify the seal color - affects which golems can accept seal tasks. -1 for any color, 0-15 for colors per minecraft colors enum
  • setFilterSlot(slot,itemname) Specify an item name (e.g. minecraft:stone) in a particular filter slot
  • setFilterSlotSize(slot,size) Specify a stack limit for items in specified filter slot. Only meaningful for seals with slot limits
  • setIsBlacklist(is_Bl) Specify true to set seal filter to blacklist mode
  • setIsLocked(is_Locked) Specify true to set seal to locked state - locking makes only golem's owned by seal's owner obey that seal
  • setIsRedstoneSensitive(is_RS) Specify true to permit seal to be disabled by redstone signal
  • setPriority(priority) Set integer priority for seal orders.
Clone this wiki locally