Search in sources :

Example 1 with RedstoneLinkFrequencySlot

use of com.simibubi.create.content.logistics.block.redstone.RedstoneLinkFrequencySlot in project Create_Aeronautics by Eriksonnaren.

the class TorsionSpringTileEntity method addBehaviours.

@Override
public void addBehaviours(List<TileEntityBehaviour> behaviours) {
    super.addBehaviours(behaviours);
    // Integer max = AllConfigs.SERVER.kinetics.maxRotationSpeed.get();
    maxAngle = new ScrollValueBehaviour(new StringTextComponent("Angle"), this, new TorsionSpringValueBoxTransform());
    maxAngle.between(1, 360);
    maxAngle.value = 90;
    maxAngle.withStepFunction(TorsionSpringTileEntity::step);
    behaviours.add(maxAngle);
    movementMode = new ScrollOptionBehaviour<>(MovementMode.class, Lang.translate("contraptions.movement_mode"), this, new TorsionSpringValueBoxTransform2());
    // behaviours.add(movementMode);
    Pair<ValueBoxTransform, ValueBoxTransform> slots = ValueBoxTransform.Dual.makeSlots(RedstoneLinkFrequencySlot::new);
    SpringBehaviour b = new SpringBehaviour(this, slots);
// behaviours.add(b);
}
Also used : RedstoneLinkFrequencySlot(com.simibubi.create.content.logistics.block.redstone.RedstoneLinkFrequencySlot) ValueBoxTransform(com.simibubi.create.foundation.tileEntity.behaviour.ValueBoxTransform) ScrollValueBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.scrollvalue.ScrollValueBehaviour)

Aggregations

RedstoneLinkFrequencySlot (com.simibubi.create.content.logistics.block.redstone.RedstoneLinkFrequencySlot)1 ValueBoxTransform (com.simibubi.create.foundation.tileEntity.behaviour.ValueBoxTransform)1 ScrollValueBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.scrollvalue.ScrollValueBehaviour)1