Class ScannerPeripheral
java.lang.Object
me.alexdevs.classicPeripherals.peripherals.scanner.ScannerPeripheral
- All Implemented Interfaces:
dan200.computercraft.api.peripheral.IPeripheral
public class ScannerPeripheral
extends Object
implements dan200.computercraft.api.peripheral.IPeripheral
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(@NonNull dan200.computercraft.api.peripheral.IComputerAccess computer) voiddetach(@NonNull dan200.computercraft.api.peripheral.IComputerAccess computer) final voideject()voidemitScannerEvent(boolean inserted) booleanequals(@Nullable dan200.computercraft.api.peripheral.IPeripheral other) final StringgetLabel()final int@NonNull StringgetType()final booleanhasPages()final dan200.computercraft.api.lua.ObjectLuaTablescan()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dan200.computercraft.api.peripheral.IPeripheral
getAdditionalTypes, getTarget
-
Constructor Details
-
ScannerPeripheral
-
-
Method Details
-
getType
- Specified by:
getTypein interfacedan200.computercraft.api.peripheral.IPeripheral
-
equals
public boolean equals(@Nullable dan200.computercraft.api.peripheral.IPeripheral other) - Specified by:
equalsin interfacedan200.computercraft.api.peripheral.IPeripheral
-
attach
public void attach(@NonNull dan200.computercraft.api.peripheral.IComputerAccess computer) - Specified by:
attachin interfacedan200.computercraft.api.peripheral.IPeripheral
-
detach
public void detach(@NonNull dan200.computercraft.api.peripheral.IComputerAccess computer) - Specified by:
detachin interfacedan200.computercraft.api.peripheral.IPeripheral
-
emitScannerEvent
public void emitScannerEvent(boolean inserted) -
hasPages
@LuaFunction public final boolean hasPages() -
getLabel
-
getPageCount
@LuaFunction public final int getPageCount() -
eject
@LuaFunction public final void eject() -
scan
@LuaFunction public final dan200.computercraft.api.lua.ObjectLuaTable scan()
-