Class SpeedControllerPeripheral
java.lang.Object
com.simibubi.create.compat.computercraft.implementation.peripherals.SyncedPeripheral<SpeedControllerBlockEntity>
com.simibubi.create.compat.computercraft.implementation.peripherals.SpeedControllerPeripheral
- All Implemented Interfaces:
dan200.computercraft.api.peripheral.IPeripheral
-
Field Summary
Fields inherited from class com.simibubi.create.compat.computercraft.implementation.peripherals.SyncedPeripheral
blockEntity -
Constructor Summary
ConstructorsConstructorDescriptionSpeedControllerPeripheral(SpeedControllerBlockEntity blockEntity, ScrollValueBehaviour targetSpeed) -
Method Summary
Modifier and TypeMethodDescriptionfinal float@NotNull StringgetType()final voidsetTargetSpeed(int speed) Methods inherited from class com.simibubi.create.compat.computercraft.implementation.peripherals.SyncedPeripheral
attach, detach, equals, onFirstAttach, onLastDetach, prepareComputerEvent, queueEventMethods 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
-
SpeedControllerPeripheral
public SpeedControllerPeripheral(SpeedControllerBlockEntity blockEntity, ScrollValueBehaviour targetSpeed)
-
-
Method Details
-
setTargetSpeed
@LuaFunction(mainThread=true) public final void setTargetSpeed(int speed) -
getTargetSpeed
@LuaFunction public final float getTargetSpeed() -
getType
-