Sign I/O Upgrade: Difference between revisions

From OpenComputers: Rebooted
Jump to navigation Jump to search
imported>OCDoc Import
Imported from legacy OpenComputers documentation at ocdoc.cil.li
 
Unify item and component API pages
Line 3: Line 3:
[[File:sign_upgrade.png|128px]]
[[File:sign_upgrade.png|128px]]


'''Provides''': [[Component/sign|sign]] component. Allows the robot to read and write signs in the world.
Allows the robot to read and write signs in the world.


The Sign I/O Upgrade is crafted using the following recipe:
The Sign I/O Upgrade is crafted using the following recipe:
Line 15: Line 15:
[[File:signio.png|200px]]
[[File:signio.png|200px]]


== Contents ==
= Component API =
Component name: <code>sign</code>. Callbacks:
{{APICallback|name=getValue|signature=(): string or nil, string|description=
Gets the text currently displayed on the sign in front of the robot, or nil and an error message if there is no sign in front of the robot.
}}
{{APICallback|name=setValue|signature=(value: string): string or nil, string|description=
Sets the text of the sign in front of the robot. Returns the new text on the sign (which may be a truncated version of the passed argument) or nil and an error message if there is no sign in front of the robot.
}}
 
= Contents =


{{:Item/contents}}
{{:Item/contents}}

Revision as of 21:00, 15 September 2026

Sign I/O Upgrade

Allows the robot to read and write signs in the world.

The Sign I/O Upgrade is crafted using the following recipe:

Component API

Component name: sign. Callbacks:

getValue

getValue(): string or nil, string

Gets the text currently displayed on the sign in front of the robot, or nil and an error message if there is no sign in front of the robot.

setValue

setValue(value: string): string or nil, string

Sets the text of the sign in front of the robot. Returns the new text on the sign (which may be a truncated version of the passed argument) or nil and an error message if there is no sign in front of the robot.

Contents

Items
Components Data Card - Debug Card - Graphics Card - Internet Card - Linked Card - Network Card - Redstone Card - Wireless Network Card
Storage Devices Floppy Disk - EEPROM - Hard Disk Drive - Memory
Upgrades Angel Upgrade - Battery Upgrade - Chunkloader Upgrade - Database Upgrade - Experience Upgrade - Generator Upgrade - Hover Upgrade - Inventory Controller Upgrade - Inventory Upgrade - Leash Upgrade - Navigation Upgrade - Piston Upgrade - Sign I/O Upgrade - Solar Generator Upgrade - Tank Upgrade - Tank Controller Upgrade - Tractor Beam Upgrade
Containers Card Container - Upgrade Container - Disk Drive
Others Analyzer - Texture Picker - Component Bus - CPU - APU - Drone Case - Manual - Microcontroller Case - Nanomachines - Remote Terminal - Terminal Server - Server - Tablet Case - Tablet - Crafting Materials - Ink Cartridge - Scrench - Hover Boots - Grog - Loot Disks