24,486 ARTICLES
ON THIS WIKI

Ticket Machine

Ticket Machine
Ticket Machine

Name Ticket Machine
Source Mod OpenPeripheral
ID Name Unknown
Type Block
Stackable Yes (64)
Solid Yes
Transparent No
Affected by Gravity No
Emits Light No
Flammable No
Required Tool Any tool
GUI of the Ticket Machine

The Ticket Machine is a block added by OpenPeripherals. The blocks interface has three inventory slots in it, two of which are input slots. The machine takes in paper in the left slot and ink sacks in the right slot. When the Ticket Machine is used it produces a Railway Ticket from Railcraft.

Methods[edit]

Return Type Method Name
Boolean condenseItems()
Boolean createTicket(destination,amount)
Boolean destroyStack(slotNumber)
Table getAdvancedMethodsData()
Example getAllStacks()
String getInventoryName()
Integer getInventorySize()
String getOwner()
Integer getStackInSlot(slotNumber)
Boolean listMethods()
Boolean pullItem(direction,slot,maxAmount,intoSlot)
Boolean pullItemIntoSlot(direction,slot,maxAmount,intoSlot)
Boolean pushItem(direction,slot,maxAmount,intoSlot)
Boolean pushItemIntoSlot(direction,slot,maxAmount,intoSlot)
Boolean swapStacks(from,to,fromDirection,fromDirection)

Sample Code[edit]

ticket = peripheral.wrap("left")
ticket.createTicket("Land of the Lost", 1)