Search in sources :

Example 6 with ScrollValueBehaviour

use of com.simibubi.create.foundation.tileEntity.behaviour.scrollvalue.ScrollValueBehaviour in project AdvancedPeripherals by Seniorendi.

the class SpeedControllerIntegration method setTargetSpeed.

@LuaFunction(mainThread = true)
public final boolean setTargetSpeed(int speed) {
    ScrollValueBehaviour scrollBehaviour = tileEntity.getBehaviour(ScrollValueBehaviour.TYPE);
    scrollBehaviour.setValue(speed);
    return true;
}
Also used : ScrollValueBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.scrollvalue.ScrollValueBehaviour) LuaFunction(dan200.computercraft.api.lua.LuaFunction)

Aggregations

ScrollValueBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.scrollvalue.ScrollValueBehaviour)6 CenteredSideValueBoxTransform (com.simibubi.create.foundation.tileEntity.behaviour.CenteredSideValueBoxTransform)2 ValueBoxTransform (com.simibubi.create.foundation.tileEntity.behaviour.ValueBoxTransform)2 Vec3 (net.minecraft.world.phys.Vec3)2 TransformStack (com.jozufozu.flywheel.util.transform.TransformStack)1 PoseStack (com.mojang.blaze3d.vertex.PoseStack)1 AllBlocks (com.simibubi.create.AllBlocks)1 KineticTileEntity (com.simibubi.create.content.contraptions.base.KineticTileEntity)1 CreativeMotorTileEntity (com.simibubi.create.content.contraptions.components.motor.CreativeMotorTileEntity)1 TransportedItemStack (com.simibubi.create.content.contraptions.relays.belt.transport.TransportedItemStack)1 AbstractFunnelBlock (com.simibubi.create.content.logistics.block.funnel.AbstractFunnelBlock)1 FunnelBlock (com.simibubi.create.content.logistics.block.funnel.FunnelBlock)1 RedstoneLinkFrequencySlot (com.simibubi.create.content.logistics.block.redstone.RedstoneLinkFrequencySlot)1 AllConfigs (com.simibubi.create.foundation.config.AllConfigs)1 AllPackets (com.simibubi.create.foundation.networking.AllPackets)1 TileEntityBehaviour (com.simibubi.create.foundation.tileEntity.TileEntityBehaviour)1 DirectBeltInputBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.belt.DirectBeltInputBehaviour)1 AngleHelper (com.simibubi.create.foundation.utility.AngleHelper)1 IntAttached (com.simibubi.create.foundation.utility.IntAttached)1 Iterate (com.simibubi.create.foundation.utility.Iterate)1