use of com.simibubi.create.content.contraptions.components.structureMovement.DirectionalExtenderScrollOptionSlot in project Create by Creators-of-Create.
the class MechanicalPistonTileEntity method getMovementModeSlot.
@Override
protected ValueBoxTransform getMovementModeSlot() {
return new DirectionalExtenderScrollOptionSlot((state, d) -> {
Axis axis = d.getAxis();
Axis extensionAxis = state.getValue(MechanicalPistonBlock.FACING).getAxis();
Axis shaftAxis = ((IRotate) state.getBlock()).getRotationAxis(state);
return extensionAxis != axis && shaftAxis != axis;
});
}
use of com.simibubi.create.content.contraptions.components.structureMovement.DirectionalExtenderScrollOptionSlot in project Create by Creators-of-Create.
the class IBearingTileEntity method getMovementModeSlot.
default ValueBoxTransform getMovementModeSlot() {
return new DirectionalExtenderScrollOptionSlot((state, d) -> {
Axis axis = d.getAxis();
Axis bearingAxis = state.getValue(BearingBlock.FACING).getAxis();
return bearingAxis != axis;
});
}
Aggregations