use of dev.murad.littlecontraptions.entity.ContraptionBargeEntity in project LittleContraptions by EDToaster.
the class BargeAssemblerBlockEntity method disassemble.
protected void disassemble(Level world, BlockPos pos, ContraptionBargeEntity barge) {
if (barge.getPassengers().isEmpty())
return;
Entity entity = barge.getPassengers().get(0);
if (!(entity instanceof OrientedContraptionEntity))
return;
OrientedContraptionEntity contraption = (OrientedContraptionEntity) entity;
contraption.yaw = BargeAssemblerBlock.getHorizontalDirection(getBlockState()).toYRot();
barge.ejectPassengers();
}
Aggregations