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);
}
Aggregations