Search in sources :

Example 1 with EdgeInteractionBehaviour

use of com.simibubi.create.foundation.tileEntity.behaviour.edgeInteraction.EdgeInteractionBehaviour in project Create by Creators-of-Create.

the class MechanicalCrafterTileEntity method addBehaviours.

@Override
public void addBehaviours(List<TileEntityBehaviour> behaviours) {
    super.addBehaviours(behaviours);
    inserting = new InvManipulationBehaviour(this, this::getTargetFace);
    connectivity = new EdgeInteractionBehaviour(this, ConnectedInputHandler::toggleConnection).connectivity(ConnectedInputHandler::shouldConnect).require(AllItems.WRENCH.get());
    behaviours.add(inserting);
    behaviours.add(connectivity);
}
Also used : EdgeInteractionBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.edgeInteraction.EdgeInteractionBehaviour) InvManipulationBehaviour(com.simibubi.create.foundation.tileEntity.behaviour.inventory.InvManipulationBehaviour)

Aggregations

EdgeInteractionBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.edgeInteraction.EdgeInteractionBehaviour)1 InvManipulationBehaviour (com.simibubi.create.foundation.tileEntity.behaviour.inventory.InvManipulationBehaviour)1