27 lines
596 B
Java
27 lines
596 B
Java
package com.simibubi.create.compat.computercraft.implementation.peripherals;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
import com.simibubi.create.content.kinetics.gauge.SpeedGaugeBlockEntity;
|
|
|
|
import dan200.computercraft.api.lua.LuaFunction;
|
|
|
|
public class SpeedGaugePeripheral extends SyncedPeripheral<SpeedGaugeBlockEntity> {
|
|
|
|
public SpeedGaugePeripheral(SpeedGaugeBlockEntity blockEntity) {
|
|
super(blockEntity);
|
|
}
|
|
|
|
@LuaFunction
|
|
public final float getSpeed() {
|
|
return this.blockEntity.getSpeed();
|
|
}
|
|
|
|
@NotNull
|
|
@Override
|
|
public String getType() {
|
|
return "Create_Speedometer";
|
|
}
|
|
|
|
}
|